Interface IUserPermissionService
Manages permissions for user access.
Namespace: Umbraco.Cms.Core.Services
Assembly: Umbraco.Core.dll
Syntax
public interface IUserPermissionService
Methods
View SourceAuthorizeAccessAsync(IUser, Guid)
Authorize that a user has access to user account.
Declaration
virtual Task<UserAuthorizationStatus> AuthorizeAccessAsync(IUser user, Guid userKey)
Parameters
Type | Name | Description |
---|---|---|
IUser | user | IUser to authorize. |
Guid | userKey | The identifier of the user account to check for access. |
Returns
Type | Description |
---|---|
Task<UserAuthorizationStatus> | A task resolving into a UserAuthorizationStatus. |
AuthorizeAccessAsync(IUser, IEnumerable<Guid>)
Authorize that a user has access to user accounts.
Declaration
Task<UserAuthorizationStatus> AuthorizeAccessAsync(IUser user, IEnumerable<Guid> userKeys)
Parameters
Type | Name | Description |
---|---|---|
IUser | user | IUser to authorize. |
IEnumerable<Guid> | userKeys | The identifiers of the user accounts to check for access. |
Returns
Type | Description |
---|---|
Task<UserAuthorizationStatus> | A task resolving into a UserAuthorizationStatus. |