Realm setting perimissions in Swift

How do i set the following in the new sdk
let permission = SyncPermission(realmPath: RealmConstants.REALMS_PATH, identity: “*”, accessLevel: .write)

       adminUser.apply(permission) { error in


Sync permissions are now configured in your backend Realm app. This post is a good primer on how partitioning and sync rules can be used: Realm Partitioning Strategies