Skip to content

ESPRMAdminUserRole

Defined in: src/ESPRMAdminUserRole.ts:11

Shell class for admin user-role mapping operations. Methods are added via prototype augmentation in methods/ESPRMAdminUserRole/*.

new ESPRMAdminUserRole(): ESPRMAdminUserRole

ESPRMAdminUserRole

getUserRoles(params?): Promise<GetUserRolesResponse>

Defined in: src/methods/ESPRMAdminUserRole/GetUserRoles.ts:22

Retrieves user-role mappings, with optional filtering and pagination.

GetUserRolesParams

Optional query parameters to filter or paginate results.

Promise<GetUserRolesResponse>

The list of user-role mappings matching the query.


updateUserRole(queryParams, body): Promise<ESPAPISuccessResponse>

Defined in: src/methods/ESPRMAdminUserRole/UpdateUserRole.ts:28

Updates the role assignment for a specific user.

UpdateUserRoleParams

Query parameters identifying the user whose role to update.

UpdateUserRoleRequest

The updated role assignment details.

Promise<ESPAPISuccessResponse>

A success response confirming the update.