---
title: "Interface IPermissionsClient"
slug: "sdk--stylelabs.m.sdk.clients.ipermissionsclient"
abstract: ""
---
# Interface IPermissionsClient

Client for fetching entity permissions.

## Namespace: StylelabsStylelabs.MSdkClients

## Assembly: Stylelabs.M.Sdk.dll

## Syntax

```csharp
public interface IPermissionsClient
```

## Methods

### GetPermissionsAsync(long, long?)

Gets the permissions for the specified entity.

#### Declaration

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

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| long | entityId | The entity id. |
| long | userId | The user id. |

#### Returns

| Type | Description |
| --- | --- |
| Task<>ISet<>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.
