Versions Compared

Key

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

...

Get a list of users by organization

Description

TheĀ GetByOrganization() method is used to get a list of users associated with an organization

Package Details

Interface

IUserManager

Syntax

await _userManager.GetByOrganization(User user)

Returns

Task<User>

API

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

Parameters

Parameter

Description

Parameter Type

id

The organization Id to search for

Path

Returns

On success, 200 Ok

On error, 400 Bad Request

On authorization error, 403 Forbidden

Example

Code Block
int organizationId = 2267;
var users = await userManager.GetByOrganization(organizationId);