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

Version 1 Next »

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, UserRoleType roleId, int createdByUserId, int? organizationId = null);

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

roleId

UserRoleType

Query string

organizationId

Organization id defaulted to null

Query string

createdByUserId

The identification number of the user who is adding this user

Query string

Returns

HTTP 200 - OK

Example

const int applicationId = 12;
const int userId= 1234;
const UserRoleType userRoleType = UserRoleType.InvoiceManager;
const int createdByUserId= 5678;

await _userApplicationManagementManager.EnrollUser(applicationId, userId, userRoleType, createdByUserId); 

 

 

  • No labels