GetApplicationByUserId [UserManager]
Note: This is only for the MTOA Platform Team.
Description
Gets list of UserApplicationManagement object based on the user id, role ids and application id. The role ids and application id are optional.
Package Details
Interface
IUserManager
Syntax
Task<ICollection<UserApplicationManagement>> GetApplicationsByUserId(int userId, List<UserRoleType> roleIds, int? appId)
Returns
ICollection<UserApplicationManagement>
API
GET - v1/users/{id}/applications
Parameters
Parameter | Description | Type |
---|---|---|
id | Stakeholder id | Path |
role Ids (optional) | User’s role id. (if it is more than one, comma delimited. For example: "1,2"). | Query string |
Application id (optional) | Application id. | Query string |
Returns
HTTP 200 - OK
Returns list of applications with roles
Sample response body – Returns values for the specified application id.
Example