Roles
Only parameters that are specified in this request and have not null values are used for filtering. All other parameters are ignored. The returned roles satisfy all constraints that are specified in this search criteria. By default a result containing 1000 roles is returned.
The first result to retrieve. If not set (offset = 0), results will be retrieved starting from row 0.
0The maximum number of results to retrieve. If not set (limit = 0), the default limit will be used. The maximum allowed limit is 1000.
0Allows to limit the number of elements that will be counted. -1 will count everything and 0 will cause the count to be skipped
-1The name of the role to search for.
The match mode used to compare name. The search is case-insensitive.
ANYWHEREPossible values: The description of the role to search for.
Whether global roles should be searched for.
The id of the owner of the roles. This can be a user or a group.
How to include inherited roles from groups in the search results. Allowable values are DIRECTLY, VIA_GROUPS, DIRECTLY_AND_VIA_GROUPS.
DIRECTLY_AND_VIA_GROUPSPossible values: The sort field for the result.
LICENSE_TYPEPossible values: The order of sorting.
DESCPossible values: Whether disabled roles should be searched for.
If set, search returns only resource roles having permissions belonging to a specific system. Supported values are 'knowledgegraph' and 'dataquality'. It must be used in combination with type = RESOURCE or global = false.
Indicates which type of roles should be searched for. Usage is mutually exclusive with the deprecated global flag.
default response
Response containing the paged information.
The total number of results.
1000The offset for the results.
10The maximum number of results to be returned.
100GET /rest/2.0/roles HTTP/1.1
Authorization: Basic username:password
Accept: */*
default response
{
"total": 1000,
"offset": 10,
"limit": 100,
"results": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdBy": "4d250cc5-e583-4640-9874-b93d82c7a6cb",
"createdOn": 1475503010320,
"lastModifiedBy": "a073ff90-e7bc-4b35-ba90-c4d475f642fe",
"lastModifiedOn": 1476703764163,
"system": true,
"name": "Test name",
"description": "Sample descripion of the resource.",
"global": true,
"disabled": true,
"permissionList": [
"text"
]
}
]
}Adds new role.
The ID of the new role. Should be unique within all roles
It should have a format of universally unique identifier (UUID) and should not start
with 00000000-0000-0000- which is a reserved prefix.
The name of the new role. Should be unique within all roles.
Whether the role should be a global or resource role.
The description of the role.
Whether the role should be disabled or not. By default, the role is enabled.
Role successfully added.
Represents a role.
A role is a grouping of rights and responsibilities (permissions) that is assigned to individual users or user groups.
Collibra DGC distinguishes between global roles and resource roles.
The id of the represented object (entity).
The id of the user that created this resource.
4d250cc5-e583-4640-9874-b93d82c7a6cbThe timestamp (in UTC time standard) of the creation of this resource.
1475503010320The id of the user who modified this resource the last time.
a073ff90-e7bc-4b35-ba90-c4d475f642feThe timestamp (in UTC time standard) of the last modification of this resource.
1476703764163Whether this is a system resource or not.
The type of the resource, e.g. [Community, Asset, Domain, Attribute, Relation, WorkflowInstance, ...]. This property is deprecated and will be removed in the future. To stay backwards compatible while still allowing new types of resources to be introduced, a resource discriminator property (of type String) has been added to the subtypes of Resource where it adds value, e.g. assignedResourceDiscriminator on AssignedResource, or attributeDiscriminator on Attribute. A discriminator is only added on subtypes whose declared return type can represent more than one kind of resource; it is omitted where the return type can only ever be a single kind, as it would then always hold the same value and carry no additional information. For new types of resource that didn't exist before this change, the resourceType will be BaseDataType.
The name of the resource.
Test nameThe description of the resource.
Sample descripion of the resource.Whether the role is global.
Whether the role is disabled.
The list of permissions this role will provide to the user. To get an up-to-date list of the permissions in the system, please refer to the enums in AddRoleRequest and ChangeRoleRequest
A role with the given ID already exists
POST /rest/2.0/roles HTTP/1.1
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 133
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"global": true,
"description": "text",
"permissions": [
"EDGE"
],
"disabled": true
}{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdBy": "4d250cc5-e583-4640-9874-b93d82c7a6cb",
"createdOn": 1475503010320,
"lastModifiedBy": "a073ff90-e7bc-4b35-ba90-c4d475f642fe",
"lastModifiedOn": 1476703764163,
"system": true,
"name": "Test name",
"description": "Sample descripion of the resource.",
"global": true,
"disabled": true,
"permissionList": [
"text"
]
}Returns the role identified by the given id.
The unique identifier of the role.
default response
Represents a role.
A role is a grouping of rights and responsibilities (permissions) that is assigned to individual users or user groups.
Collibra DGC distinguishes between global roles and resource roles.
The id of the represented object (entity).
The id of the user that created this resource.
4d250cc5-e583-4640-9874-b93d82c7a6cbThe timestamp (in UTC time standard) of the creation of this resource.
1475503010320The id of the user who modified this resource the last time.
a073ff90-e7bc-4b35-ba90-c4d475f642feThe timestamp (in UTC time standard) of the last modification of this resource.
1476703764163Whether this is a system resource or not.
The type of the resource, e.g. [Community, Asset, Domain, Attribute, Relation, WorkflowInstance, ...]. This property is deprecated and will be removed in the future. To stay backwards compatible while still allowing new types of resources to be introduced, a resource discriminator property (of type String) has been added to the subtypes of Resource where it adds value, e.g. assignedResourceDiscriminator on AssignedResource, or attributeDiscriminator on Attribute. A discriminator is only added on subtypes whose declared return type can represent more than one kind of resource; it is omitted where the return type can only ever be a single kind, as it would then always hold the same value and carry no additional information. For new types of resource that didn't exist before this change, the resourceType will be BaseDataType.
The name of the resource.
Test nameThe description of the resource.
Sample descripion of the resource.Whether the role is global.
Whether the role is disabled.
The list of permissions this role will provide to the user. To get an up-to-date list of the permissions in the system, please refer to the enums in AddRoleRequest and ChangeRoleRequest
GET /rest/2.0/roles/{roleId} HTTP/1.1
Authorization: Basic username:password
Accept: */*
default response
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdBy": "4d250cc5-e583-4640-9874-b93d82c7a6cb",
"createdOn": 1475503010320,
"lastModifiedBy": "a073ff90-e7bc-4b35-ba90-c4d475f642fe",
"lastModifiedOn": 1476703764163,
"system": true,
"name": "Test name",
"description": "Sample descripion of the resource.",
"global": true,
"disabled": true,
"permissionList": [
"text"
]
}Removes the role identified by the given id.
The unique identifier of the role.
default response
DELETE /rest/2.0/roles/{roleId} HTTP/1.1
Authorization: Basic username:password
Accept: */*
default response
Changes the role with the information that is present in the request. Only properties that are specified in this request and have not null values are updated. All other properties are ignored.
The unique identifier of the role.
The new name for the role. Should be unique within all roles.
The new description for the role.
Whether the role should be disabled or not.
default response
Represents a role.
A role is a grouping of rights and responsibilities (permissions) that is assigned to individual users or user groups.
Collibra DGC distinguishes between global roles and resource roles.
The id of the represented object (entity).
The id of the user that created this resource.
4d250cc5-e583-4640-9874-b93d82c7a6cbThe timestamp (in UTC time standard) of the creation of this resource.
1475503010320The id of the user who modified this resource the last time.
a073ff90-e7bc-4b35-ba90-c4d475f642feThe timestamp (in UTC time standard) of the last modification of this resource.
1476703764163Whether this is a system resource or not.
The type of the resource, e.g. [Community, Asset, Domain, Attribute, Relation, WorkflowInstance, ...]. This property is deprecated and will be removed in the future. To stay backwards compatible while still allowing new types of resources to be introduced, a resource discriminator property (of type String) has been added to the subtypes of Resource where it adds value, e.g. assignedResourceDiscriminator on AssignedResource, or attributeDiscriminator on Attribute. A discriminator is only added on subtypes whose declared return type can represent more than one kind of resource; it is omitted where the return type can only ever be a single kind, as it would then always hold the same value and carry no additional information. For new types of resource that didn't exist before this change, the resourceType will be BaseDataType.
The name of the resource.
Test nameThe description of the resource.
Sample descripion of the resource.Whether the role is global.
Whether the role is disabled.
The list of permissions this role will provide to the user. To get an up-to-date list of the permissions in the system, please refer to the enums in AddRoleRequest and ChangeRoleRequest
PATCH /rest/2.0/roles/{roleId} HTTP/1.1
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 75
{
"name": "text",
"description": "text",
"permissions": [
"EDGE"
],
"disabled": true
}default response
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdBy": "4d250cc5-e583-4640-9874-b93d82c7a6cb",
"createdOn": 1475503010320,
"lastModifiedBy": "a073ff90-e7bc-4b35-ba90-c4d475f642fe",
"lastModifiedOn": 1476703764163,
"system": true,
"name": "Test name",
"description": "Sample descripion of the resource.",
"global": true,
"disabled": true,
"permissionList": [
"text"
]
}Last updated
Was this helpful?