Exago .NET API Documentation
ActiveRoleId Property
Example 
WebReports.Api.Common Namespace > General Class : ActiveRoleId Property
Get or set the ID (name) of the active role. Setting the ActiveRoleId will also activate the role.
Syntax
public System.string ActiveRoleId {get; set;}

Property Value

The name of one of the roles in the system configuration.
Exceptions
ExceptionDescription
A System.NullReferenceException will be thrown when Exago attempts to create the session and the ID of the role does not exist in the configuration.
Remarks

Once activated, it is not possible to deactivate a role in the API.

Example
Set the active role to "Restricted User"
api.General.ActiveRoleId = "Restricted User";
See Also

Reference

General Class
General Members

Exago Knowledge Base

Roles