logo
logo
  • Interface IPermissionsClient

    Client for fetching entity permissions.

    Namespace: Stylelabs.M.Sdk.Clients
    Assembly: Stylelabs.M.Sdk.dll
    Syntax
    public interface IPermissionsClient

    Methods

    GetPermissionsAsync(Int64, Nullable<Int64>)

    Gets the permissions for the specified entity.

    Declaration
    Task<ISet<string>> GetPermissionsAsync(long entityId, long? userId = null)
    Parameters
    Type Name Description
    System.Int64 entityId

    The entity id.

    System.Nullable<System.Int64> userId

    The user id.

    Returns
    Type Description
    Task<ISet<System.String>>

    A set of all permissions for the specified entity.

    Remarks

    If userId is not provided, the permissions for the current user will be returned.

    Can we improve this article ? Provide feedback