How to assign custom scopes to users?