POST v1/Users({UserId})/AssignedRoles

Assign a Security Role to a User

Information:

Base URL:

https://api.covasoft.net/usermanager

Example of a call would be:

https://api.covasoft.net/usermanager/v1/Users({UserId})/AssignedRoles

Example of the Body of the Call:

{ "EntityId": "94448", "SecurityRoleId": 200471 }

Request Information

URI Parameters

NameDescriptionTypeAdditional information
UserId

The User Id for which you want Security Roles Assigned

integer

Required

Body Parameters

Company Id and Security Role - See Example

AssignSecurityRolePost
NameDescriptionTypeAdditional information
EntityId

integer

None.

SecurityRoleId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "EntityId": 1,
  "SecurityRoleId": 2
}

Response Information

Resource Description

The Assiged Security Role to a User with the Security Role Assignment Id as the Id

AssignSecurityRoleReturn
NameDescriptionTypeAdditional information
Id

This is the Security Role Assignment Id

integer

None.

UserId

integer

None.

SecurityRoleId

integer

None.

EntityId

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "UserId": 2,
  "SecurityRoleId": 3,
  "EntityId": 4
}