Get Roles
You can use LogicMonitor’s REST API to programmatically get information about your LogicMonitor roles. You can either get a list of roles or you can get details for a particular role.
Note: As with all of our API calls, authentication is required.
Get a list of all Roles
Returns a list of roles
Example 1: GET all Roles
The following Python script will return a list of all roles in the api.logicmonitor.com portal.
Example 2: GET all Roles
The following Python script will return a list of roles in the api.logicmonitor.com portal, where only the name, associatedUserCount and privileges are returned for each result and the results are sorted in descending order according to the associatedUserCount.
Get information about a particular role
Returns details for a particular role
Example 1: GET one role
The following Python script will return the details for the role with id 8.