EnrollUser
Note: This is only for the MTOA Platform Team.
Description
Enroll a user in an application with a role associated with services and permissions.
Package Details
Interface
IUserApplicationManagementManager
Syntax
await UserApplicationManagementManager.EnrollUser(int appId, int userId, ICollection<AddUserApplicationService> userAppServices, int createdByUserId);
Returns
void
API
POST - /api/v1/userapplications/{id}/enrolluser
Parameters
Parameter | Description | Type |
---|---|---|
id | The identification number of the application. | Path |
userId | The identification number of the user. | Query string |
userAppServices | Services of the user application enrollment Service id: Rold id (UserRoleType): Role id of the service that the user is going to be enrolled | Request body |
createdByUserId | User id who is enrolling this user | Query string |
Returns
HTTP 200 - OK
Example