NinjaOne icon

NinjaOne

Consume the NinjaOne RMM API

System → Get Device Roles

AI-generated

Summary

Retrieve a list of device roles defined in the NinjaOne system via an authenticated API request.

Inputs

  • Authentication (required) — Select the authentication method for the request: OAuth2 Authorization Code or Client Credentials.

Output shape

a list of device role objects

Returns an array of device role records from NinjaOne with no additional pagination parameters; handles authentication automatically based on user selection.

Examples

Example 1: List all device roles available in the NinjaOne account

No additional input fields besides selecting the Authentication method are required for this operation.

Links

Discussion