UserInfoMethods extension

Additional methods for UserInfo.

on

Properties

scopes → Set<Scope>

Available on UserInfo, provided by the UserInfoMethods extension

Returns a set containing the scopes this user has access to.
no setter

Methods

changeFullName(Session session, String newUserName) → Future<bool>

Available on UserInfo, provided by the UserInfoMethods extension

Updates the full name of this user, returns true if successful.
changeUserName(Session session, String newUserName) → Future<bool>

Available on UserInfo, provided by the UserInfoMethods extension

Updates the name of this user, returns true if successful.
invalidateCache(Session session) → Future<void>

Available on UserInfo, provided by the UserInfoMethods extension

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>

Available on UserInfo, provided by the UserInfoMethods extension

Updates the scopes for a user, returns true if successful.