getUsersInOrganization method
This method returns all the users associated with an organization. Use this method where you want to provide a list of users for an organization or determine if a user is associated with an organization.
Permissions required: Service desk administrator or agent.
Implementation
Future<PagedDTOUserDTO> getUsersInOrganization(
{required int organizationId, int? start, int? limit}) async {
return PagedDTOUserDTO.fromJson(await _client.send(
'get',
'rest/servicedeskapi/organization/{organizationId}/user',
pathParameters: {
'organizationId': '$organizationId',
},
queryParameters: {
if (start != null) 'start': '$start',
if (limit != null) 'limit': '$limit',
},
));
}