Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Note: This is only for the MTOA Platform Team.

Description

Retrieves a user's role per service based on an application identification number.

Package Details

Interface

IUserApplicationManagementManager

Syntax

await UserApplicationManagementManager.GetUserRolesByApplication(int applicationId, int userId, bool isActive = true);

Returns

ApplicationUserRole

API

GET - /api/v1/userapplications/{id}/roles?userId={userId}&isActive={true|false}

Parameters

Parameter

Description

Type

id

Required

The identification number of the application.

Must be a valid application number.

Path

userId

Required

The user’s identification number the role(s) per service(s).

Query string

isActive

Optional

Only return services where the user’s enrollment status is set to ‘ACTIVE’.

Default value is ‘true’.

Query string

Returns

HTTP 200 - OK

Example

const int applicationId = 12; await _userApplicationManagementManager.GetUsersByApplicationId(applicationId, 1, 20);

  • No labels