Calculate roles with access to scope
POST/roles/roles-with-access
Calculate the list of roles that have access to a specific scope
Request
- application/json
Body
organizationId stringnullable
projectId stringnullable
resourcePath stringnullable
resourceType stringnullable
viewerSceneId stringnullable
Responses
- 200
- 400
- 401
- 403
- 500
Success
- text/plain
- application/json
- text/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
]
permission
object
id stringnullable
name stringnullable
description stringnullable
children undefined[]nullable
childrenIds string[]nullable
isRootOnly boolean
isReadOnlyPermission boolean
roleAssignmentInfo
object[]
nullable
role
object
id stringnullable
name stringnullable
description stringnullable
isFrozenForChanges boolean
isOrganizationRole boolean
scope
object
organizationId stringnullable
projectId stringnullable
resourcePath stringnullable
resourceType stringnullable
viewerSceneId stringnullable
isOrgLevel boolean
type PermissionType (string)
Possible values: [Direct
, Inherited
]
scope
object
organizationId stringnullable
projectId stringnullable
resourcePath stringnullable
resourceType stringnullable
viewerSceneId stringnullable
isOrgLevel boolean
[
{
"permission": {
"id": "string",
"name": "string",
"description": "string",
"children": [
null
],
"childrenIds": [
"string"
],
"isRootOnly": true,
"isReadOnlyPermission": true
},
"roleAssignmentInfo": [
{
"role": {
"id": "string",
"name": "string",
"description": "string",
"isFrozenForChanges": true,
"isOrganizationRole": true,
"scope": {
"organizationId": "string",
"projectId": "string",
"resourcePath": "string",
"resourceType": "string",
"viewerSceneId": "string",
"isOrgLevel": true
}
},
"type": "Direct",
"scope": {
"organizationId": "string",
"projectId": "string",
"resourcePath": "string",
"resourceType": "string",
"viewerSceneId": "string",
"isOrgLevel": true
}
}
]
}
]
- Schema
- Example (from schema)
Schema
Array [
Array [
]
]
permission
object
id stringnullable
name stringnullable
description stringnullable
children undefined[]nullable
childrenIds string[]nullable
isRootOnly boolean
isReadOnlyPermission boolean
roleAssignmentInfo
object[]
nullable
role
object
id stringnullable
name stringnullable
description stringnullable
isFrozenForChanges boolean
isOrganizationRole boolean
scope
object
organizationId stringnullable
projectId stringnullable
resourcePath stringnullable
resourceType stringnullable
viewerSceneId stringnullable
isOrgLevel boolean
type PermissionType (string)
Possible values: [Direct
, Inherited
]
scope
object
organizationId stringnullable
projectId stringnullable
resourcePath stringnullable
resourceType stringnullable
viewerSceneId stringnullable
isOrgLevel boolean
[
{
"permission": {
"id": "string",
"name": "string",
"description": "string",
"children": [
null
],
"childrenIds": [
"string"
],
"isRootOnly": true,
"isReadOnlyPermission": true
},
"roleAssignmentInfo": [
{
"role": {
"id": "string",
"name": "string",
"description": "string",
"isFrozenForChanges": true,
"isOrganizationRole": true,
"scope": {
"organizationId": "string",
"projectId": "string",
"resourcePath": "string",
"resourceType": "string",
"viewerSceneId": "string",
"isOrgLevel": true
}
},
"type": "Direct",
"scope": {
"organizationId": "string",
"projectId": "string",
"resourcePath": "string",
"resourceType": "string",
"viewerSceneId": "string",
"isOrgLevel": true
}
}
]
}
]
- Schema
- Example (from schema)
Schema
Array [
Array [
]
]
permission
object
id stringnullable
name stringnullable
description stringnullable
children undefined[]nullable
childrenIds string[]nullable
isRootOnly boolean
isReadOnlyPermission boolean
roleAssignmentInfo
object[]
nullable
role
object
id stringnullable
name stringnullable
description stringnullable
isFrozenForChanges boolean
isOrganizationRole boolean
scope
object
organizationId stringnullable
projectId stringnullable
resourcePath stringnullable
resourceType stringnullable
viewerSceneId stringnullable
isOrgLevel boolean
type PermissionType (string)
Possible values: [Direct
, Inherited
]
scope
object
organizationId stringnullable
projectId stringnullable
resourcePath stringnullable
resourceType stringnullable
viewerSceneId stringnullable
isOrgLevel boolean
[
{
"permission": {
"id": "string",
"name": "string",
"description": "string",
"children": [
null
],
"childrenIds": [
"string"
],
"isRootOnly": true,
"isReadOnlyPermission": true
},
"roleAssignmentInfo": [
{
"role": {
"id": "string",
"name": "string",
"description": "string",
"isFrozenForChanges": true,
"isOrganizationRole": true,
"scope": {
"organizationId": "string",
"projectId": "string",
"resourcePath": "string",
"resourceType": "string",
"viewerSceneId": "string",
"isOrgLevel": true
}
},
"type": "Direct",
"scope": {
"organizationId": "string",
"projectId": "string",
"resourcePath": "string",
"resourceType": "string",
"viewerSceneId": "string",
"isOrgLevel": true
}
}
]
}
]
Bad Request
Unauthorized
Forbidden
Server Error
Loading...