1. Stylelabs.M.Sdk.Clients

Interface IPermissionsClient

Client for fetching entity permissions.

Namespace: StylelabsStylelabs.MSdkClients

Assembly: Stylelabs.M.Sdk.dll

Syntax

public interface IPermissionsClient

Methods

GetPermissionsAsync(long, long?)

Gets the permissions for the specified entity.

Declaration

Task<ISet<string>> GetPermissionsAsync(long entityId, long? userId = null)

Parameters

TypeNameDescription
longentityIdThe entity id.
longuserIdThe user id.

Returns

TypeDescription
Task<>ISet<>stringA set of all permissions for the specified entity.

Remarks

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

If you have suggestions for improving this article, let us know!