Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Get all permissions for a user

Description

The GetPermissions() method is used to get all permissions for a specific user.

Package Details

Interface

IUserManager

Syntax

await _userManager.GetPermissions(int userId)

Returns

Task<ICollection<UserServicePermissionInfo>>

API

GET
/api/v1/users/{id}/permissions

Parameters

Parameter

Description

Parameter Type

id

The user Id to search for

Path

Returns

If the user is found, 200 Ok

On error, 400 Bad Request

On authorization error, 403 Forbidden

Example

Code Block
int userId = 1;
var userPermissions = await _userManager.GetPermissions(userId);