In Swift, you shouldn't use Optional like this. You should instead make a new type to represent exactly what parameter this function expects:
enum AllowList {
case all
case some([ClientIdentifier])
}