UserInfoMethods extension

Additional methods for UserInfo.

on

Properties

scopes Set<Scope>
Returns a set containing the scopes this user has access to.
no setter

Methods

changeUserName(Session session, String newUserName) Future<bool>
Updates the name of this user, returns true if successful.
invalidateCache(Session session) Future<void>
Invalidates the local cache for the user, and forces next lookup to get a fresh copy from the database.
updateScopes(Session session, Set<Scope> newScopes) Future<bool>
Updates the scopes for a user, returns true if successful.