Importing communities
Command structure
[
{
"resourceType": "Community",
"identifier": {
"name": "Technical Community"
},
"description": "The Technical Community is organization gathering all technical domains of our company.",
"name": "New Technical Community",
"parent": {
"name": "Parent of All Communities"
},
"responsibilities": {
"00000000-0000-0000-0000-000000005018": [
{
"user": {
"id": "00000000-0000-0000-0000-000000900001"
}
}
],
"Business Steward": [
{
"userGroup": {
"id": "00000000-0000-0000-0000-000001000002"
}
}
]
}
}
]Identifier
You can use any of the following fields as the identifier for a community but only one at a time:
idnameexternalSystemIdandexternalEntityId
Identifier structure
Optional fields
description
String
Sets the community description.
name
String
Sets the community name. Should only be used for updates.
parent
The identifier of a community.
Sets the parent community for the community.
The resource role and one or more users or user groups.
Creates or replaces responsibilities for the associated community.
Expected behavior
If a community with the name Technical Community does not exist, the import API performs an insert operation. It creates a community with the specified name and description. The parent community is retrieved and set as parent for the newly created community. If the parent community does not exist, the import results in an error.
The Import API does not support importing nested communities in a single request. Parent communities of imported communities must exist in Collibra for the imported communities to be created successfully. The following example is not supported: to import all three communities, you must send three requests, each with just one community, in the order of dependency, starting from root to the children.
Add operation
If the community needs to be created, the following fields have to be provided in order to import successfully:
name
Responsibilities
You define a responsibility by specifying a resource role, identified by name or ID, and assigning to it one or more users or user groups, identified by ID:
You must specify each role only once in the list of responsibilities.
You can assign multiple users and multiple user groups to the same role:
The Import API performs a query for the responsibilities in Collibra and:
If the same responsibilities exist, the Import API performs no action.
If responsibilities other than the ones provided in the input exist, they remain unchanged.
If a responsibility exists with the same role but different assignees, the Import API deletes the existing responsibility and replaces it with the one provided in the input.
If the responsibilities do not exist, the Import API creates them.
Last updated
Was this helpful?