action rudder_get_role { label: "List all roles" description: "Get all available roles and their rights" provider: rudder method: GET path: "/usermanagement/roles" encoding: json output: { type: "object" required: ["action", "data", "result"] properties: { action: { type: "string" description: "The id of the action" enum: ["getRole"] } data: { type: "array" items: { type: "object" required: ["id", "rights"] properties: { id: { type: "string" description: "Name of the role" enum: ["inventory", "compliance", "administrator", "etc"] } rights: { type: "array" description: "Role's rights" items: { type: "string" enum: ["node_read", "userAccount_all"] } } } } } result: { type: "string" description: "Result of the request" enum: ["success", "error"] } } } }