Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Note: This is only for the MTOA Platform Team.

Description

Retrieve internal users based on an application id

Package Details

...

Parameter

Description

Type

appId

The identification number of the application.

Path

page

page number. Optional. If it is empty, the default value is 1

Query string

pageSize

size of the page. Optional. (If it is empty, the default value is the MTOA max page size (100)).

Query string

userName

Optional. If it is entered, it will search users of the whose first name of or last name that contains the value. Email Note: If email address and name are entered, it will search users that have the email address or the user name.

Query string

emailAddress

Optional. If it is entered, it will search email address that contains the value. Email Note: If email address and name are entered, it will search users that have the email address or the user name.

Query string

UserRoleType

Optional. User role code. If it is entered, it the result will be filtered by the role. It will search users with the role.

Query string

ServId

Optional. Service Id. If it is entered, it will be filtered by the service id. It will search users that have access to the service.

Query string

Returns

HTTP 200 - OK

...

Code Block
const int applicationId = 12;
const UserRoleType userRoleType = UserRoleType.InvoiceManager;

await _userApplicationManagementManager.GetUsersByApplicationId(applicationId, 1, 20);

await _userApplicationManagementManager.GetUsersByApplicationId(applicationId, 1, 20, null, "test");