Internal role object with comprehensive permission and system details
Unique identifier for the role (MongoDB ObjectId)
"65c1f68ea735b522d370ea24"
Organization identifier that owns this role
"65c1f4eeca7c4816d94587b2"
Role display name
"Field Manager"
Array of permission strings granted to this role
[
"task.read",
"task.create",
"task.update",
"user.read",
"vehicle.read",
"hub.read"
]Whether this role is currently active
true
Role internal code
"field_manager"
The input type of the component (e.g., string, number, date, etc.)
Permissions organized by module/feature groups
Hub IDs this role can access (null means all hubs)
[
"65c1f68ea735b522d370ea25",
"65c1f68ea735b522d370ea26"
]Flow-specific permissions configuration
Whether this role can be deleted (system roles cannot be deleted)
true
Whether this is a default system role
false
Number of users currently assigned to this role
15
Users assigned to this role (for internal reference)
Role hierarchy information
Email of admin who created this role
"admin@mile.app"
Email of admin who last updated this role
"admin@mile.app"
ISO 8601 timestamp when role was created
"2024-01-05T14:30:00.000000Z"
ISO 8601 timestamp when role was last updated
"2024-02-01T10:15:00.000000Z"
Internal administrative notes (not visible to public API)
"Custom role created for regional operations team"
Role permission change audit log
Internal system metadata
Role Module business failedCode that indicate specific failure conditions or business rule violations during role module operations. These codes help identify the failed operation of role-related and provide standardized failure identification across the system.
Possible values:
role-031, role-032, role-033, role-034, role-035, role-036, role-037, role-039, role-040, role-041, role-042, role-043, role-044, role-045, role-046