Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IUserPermissionService

    Manages permissions for user access.

    Namespace: Umbraco.Cms.Core.Services
    Assembly: Umbraco.Core.dll
    Syntax
    public interface IUserPermissionService

    Methods

    View Source

    AuthorizeAccessAsync(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.

    View Source

    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.

    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • AuthorizeAccessAsync(IUser, Guid)
      • AuthorizeAccessAsync(IUser, IEnumerable<Guid>)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX