Domain Principal
An Object
| Note |
Parent
This Domain Principal is contained within a Domain.
Properties
The following properties are available:
| Property | Type | Default | Read-Only | Description |
|---|---|---|---|---|
| _doc | string | No | The primary ID | |
| _system | object | No | Metadata maintained by the system | |
| authorities | array | No | ||
| name | string | No | ||
| type | string | No |
Methods
In this list, … stands for /domains/{domainId}/principals.
- POSTAdd Member
…/{principalId}/members/add - POSTCheck Membership
…/membership/check - POSTCheck Memberships
…/memberships/check - POSTCheck Permission
…/{permissionedId}/permissions/{permissionId}/check - POSTCheck Single Authority
…/{permissionedId}/authorities/{authorityId}/check - POSTCheck multiple Authorities
…/authorities/check - POSTCheck multiple Permissions
…/permissions/check - POSTCreate Domain Principal
/domains/{domainId}/principals - DELETEDelete Attachment
…/{principalId}/attachments/{attachmentId} - DELETEDelete Domain Principal
…/{principalId} - GETDownload Attachment
…/{principalId}/attachments/{attachmentId} - GETDownload Preview
…/{principalId}/preview/{name} - POSTExport Domain Principal
…/{principalId}/export - POSTGrant Authority
…/{permissionedId}/authorities/{authorityId}/grant - POSTImport Domain Principal
…/{principalId}/import - POSTInvite User
…/invite - GETList Attachments
…/{principalId}/attachments - GETList Members
…/{principalId}/members - GETList Memberships
…/{principalId}/memberships - GETList Teams
…/{principalId}/teams - GETLists Domain Principal
/domains/{domainId}/principals - POSTQuery
…/query - GETRead ACL
…/{permissionedId}/acl/list - GETRead ACL for Principal
…/{permissionedId}/acl - POSTRead Authorities Report
…/{permissionedId}/authorities - GETRead Domain Principal
…/{principalId} - POSTRemove Member
…/{principalId}/members/remove - POSTRevoke Authority
…/{permissionedId}/authorities/{authorityId}/revoke - GETSummarize Access Policy
…/{principalId}/access/policies/summary - PUTUpdate Domain Principal
…/{principalId} - POSTUpload Attachment
…/{principalId}/attachments/{attachmentId} - POSTUpload Attachments
…/{principalId}/attachments
Add Member
POST /domains/{domainId}/principals/{principalId}/members/add
Parameters (3), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| domainId | Yes | string | The ID of the domain |
| principalId | Yes | string | The ID of the principal |
| id | Yes | string |
Response
{
"type": "object",
"description": "Status of Operation",
"properties": {
"ok": {
"type": "boolean",
"description": "Indicates whether the operation succeeded or not"
}
}
}
Check Membership
POST /domains/{domainId}/principals/membership/check
Parameters (1)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| domainId | Yes | string | The ID of the domain |
Check Memberships
POST /domains/{domainId}/principals/memberships/check
Parameters (1)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| domainId | Yes | string | The ID of the domain |
Check Permission
POST /domains/{domainId}/principals/{permissionedId}/permissions/{permissionId}/check
Parameters (4), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| domainId | Yes | string | The ID of the domain |
| permissionedId | Yes | string | The ID of the permissioned object or datastore |
| permissionId | Yes | string | The ID of the permission |
| id | Yes | string |
Response
{
"type": "object",
"description": "Check",
"extends": "status",
"properties": {
"check": {
"type": "boolean"
},
"ok": null
}
}
Check Single Authority
POST /domains/{domainId}/principals/{permissionedId}/authorities/{authorityId}/check
Parameters (4), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| domainId | Yes | string | The ID of the domain |
| permissionedId | Yes | string | The ID of the permissioned object or datastore |
| authorityId | Yes | string | The ID or authority key for the authority |
| id | Yes | string |
Response
{
"type": "object",
"description": "Check",
"extends": "status",
"properties": {
"check": {
"type": "boolean"
},
"ok": null
}
}
Check multiple Authorities
POST /domains/{domainId}/principals/authorities/check
Parameters (1), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| domainId | Yes | string | The ID of the domain |
Response
{
"type": "object",
"description": "Check Multiple Authorities Out",
"properties": {
"checks": {
"type": "array",
"items": {
"type": "object",
"properties": {
"permissionedId": {
"type": "string"
},
"principalId": {
"type": "string"
},
"authorityId": {
"type": "string"
},
"result": {
"type": "boolean"
}
}
}
}
}
}
Check multiple Permissions
POST /domains/{domainId}/principals/permissions/check
Parameters (2), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| domainId | Yes | string | The ID of the domain |
| HTTP Payload | Yes | string | HTTP Payload |
Response
{
"type": "object",
"description": "List of results for Principals that were Checked",
"properties": {
"results": {
"type": "array",
"items": {
"type": "object",
"properties": {
"permissionedId": {
"type": "string"
},
"principalId": {
"type": "string"
},
"permissionId": {
"type": "string"
},
"result": {
"type": "boolean"
}
}
}
}
}
}
Create Domain Principal
POST /domains/{domainId}/principals
Parameters (1), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| domainId | Yes | string |
Response
{
"type": "object",
"description": "Status of Operation",
"properties": {
"ok": {
"type": "boolean",
"description": "Indicates whether the operation succeeded or not"
}
}
}
Delete Attachment
DELETE /domains/{domainId}/principals/{principalId}/attachments/{attachmentId}
Parameters (3), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| domainId | Yes | string | The ID of the domain |
| principalId | Yes | string | The ID of the principal |
| attachmentId | Yes | string |
Response
{
"type": "object",
"description": "Status of Operation",
"properties": {
"ok": {
"type": "boolean",
"description": "Indicates whether the operation succeeded or not"
}
}
}
Delete Domain Principal
DELETE /domains/{domainId}/principals/{principalId}
Parameters (2), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| domainId | Yes | string | The ID of the domain |
| principalId | Yes | string | The ID of the principal |
Response
{
"type": "object",
"description": "Status of Operation",
"properties": {
"ok": {
"type": "boolean",
"description": "Indicates whether the operation succeeded or not"
}
}
}
Download Attachment
GET /domains/{domainId}/principals/{principalId}/attachments/{attachmentId}
Parameters (4)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| domainId | Yes | string | The ID of the domain |
| principalId | Yes | string | The ID of the principal |
| attachmentId | Yes | string | |
| a | No | string | If true, the 'Content-Disposition' header will be set |
Download Preview
GET /domains/{domainId}/principals/{principalId}/preview/{name}
Parameters (9)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| domainId | Yes | string | The ID of the domain |
| principalId | Yes | string | The ID of the principal |
| name | Yes | string | |
| mimetype | No | string | The mimetype to be streamed back (defaults to 'image/png') |
| size | No | number | For image mimetypes, the max width of the generated image (defaults to 64) |
| attachment | No | string | The ID of the attachment that serves as the source for the preview (default to 'default') |
| force | No | boolean | Forces the re-generation of the preview stream, even if previously saved |
| save | No | boolean | Specifies whether to save the generated preview stream as an attachment (defaults to true) |
| fallback | No | boolean | A fallback URL that should be redirected to in the event that a preview stream cannot be generated |
Export Domain Principal
POST /domains/{domainId}/principals/{principalId}/export
Parameters (7), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| domainId | Yes | string | The ID of the domain |
| principalId | Yes | string | The ID of the principal |
| groupId | No | string | The Group ID to be assigned to the exported archive |
| artifactId | No | string | The Artifact ID to be assigned to the exported archive |
| versionId | No | string | The Version ID to be assigned to the exported archive |
| vaultId | No | string | The ID of the vault where the exported archive should be saved |
| schedule | No | string | Whether to run the job immediately or in the background (either 'synchronous' or 'asynchronous') |
Response
{
"type": "object",
"description": "Export Configuration",
"properties": {
"startDate": {
"type": "object",
"description": "Only include objects whose modification date is after this time (epoch millis). This is used for partial or rolling exports."
},
"endDate": {
"type": "object",
"description": "Only include objects whose modification date is before this time (epoch millis). This is used for partial or rolling exports."
},
"startChangeset": {
"type": "string",
"description": "Only include data that is relevant to changesets at or beyond the specified changeset."
},
"endChangeset": {
"type": "string",
"description": "Only include data that is relevant to changesets at or before the specified changeset."
},
"includeACLs": {
"type": "boolean",
"default": true,
"description": "Whether to include ACLs during export."
},
"includeTeams": {
"type": "boolean",
"default": true,
"description": "Whether to include Teams during export."
},
"includeActivities": {
"type": "boolean",
"default": true,
"description": "Whether to include Activities during export."
},
"includeBinaries": {
"type": "boolean",
"default": true,
"description": "Whether to include Binaries for data stores during export."
},
"includeAttachments": {
"type": "boolean",
"default": true,
"description": "Whether to include Attachments for Attachables during export."
},
"artifactDependencies": {
"type": "array",
"items": {
"type": "object"
}
},
"artifactIncludes": {
"type": "array",
"items": {
"type": "object"
}
},
"forceIncludes": {
"type": "boolean"
}
}
}
Grant Authority
POST /domains/{domainId}/principals/{permissionedId}/authorities/{authorityId}/grant
Parameters (4), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| domainId | Yes | string | The ID of the domain |
| permissionedId | Yes | string | The ID of the permissioned object or datastore |
| authorityId | Yes | string | The ID or authority key for the authority |
| id | Yes | string |
Response
{
"type": "object",
"description": "Status of Operation",
"properties": {
"ok": {
"type": "boolean",
"description": "Indicates whether the operation succeeded or not"
}
}
}
Import Domain Principal
POST /domains/{domainId}/principals/{principalId}/import
Parameters (7), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| domainId | Yes | string | The ID of the domain |
| principalId | Yes | string | The ID of the principal |
| groupId | No | string | The Group ID to be assigned to the exported archive |
| artifactId | No | string | The Artifact ID to be assigned to the exported archive |
| versionId | No | string | The Version ID to be assigned to the exported archive |
| vaultId | No | string | The ID of the vault where the exported archive should be saved |
| schedule | No | string | Whether to run the job immediately or in the background (either 'synchronous' or 'asynchronous') |
Response
{
"type": "object",
"description": "Import Configuration",
"properties": {
"includeACLs": {
"type": "boolean",
"default": true,
"description": "Whether to include ACLs during import."
},
"includeTeams": {
"type": "boolean",
"default": true,
"description": "Whether to include Teams during import."
},
"includeActivities": {
"type": "boolean",
"default": true,
"description": "Whether to include Activities during import."
},
"includeBinaries": {
"type": "boolean",
"default": true,
"description": "Whether to include Binaries for data stores during import."
},
"includeAttachments": {
"type": "boolean",
"default": true,
"description": "Whether to include Attachments for Attachables during import."
},
"strategy": {
"type": "array",
"items": {
"type": "string"
},
"default": "CLONE",
"description": "Either CLONE or COPY_EVERYTHING. Use CLONE to keep the same IDs on import. Use COPY_EVERYTHING to generate all new IDs for all entries on every import."
},
"substitutions": {
"type": "string"
}
}
}
Invite User
POST /domains/{domainId}/principals/invite
Parameters (2), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| domainId | Yes | string | The ID of the domain |
| id | Yes | string |
Response
{
"type": "object",
"description": "Status of Operation (with ID)",
"extends": "status",
"properties": {
"_doc": {
"type": "string"
},
"ok": null
}
}
List Attachments
GET /domains/{domainId}/principals/{principalId}/attachments
Parameters (2), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| domainId | Yes | string | The ID of the domain |
| principalId | Yes | string | The ID of the principal |
Response
{
"type": "object",
"description": "Result Map",
"properties": {
"total_rows": {
"type": "number"
},
"offset": {
"type": "number"
},
"size": {
"type": "number"
},
"rows": {
"type": "array",
"items": {
"$ref": "#/components/schemas/resultmap_attachment"
}
}
}
}
List Members
GET /domains/{domainId}/principals/{principalId}/members
Parameters (5), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| domainId | Yes | string | The ID of the domain |
| principalId | Yes | string | The ID of the principal |
| sort | No | object | Defines how to sort fields in the result set |
| skip | No | number | Skips the result set cursor ahead the specified number of records |
| limit | No | number | Specifies the number of records to be handed back in the result set |
Response
{
"type": "object",
"description": "Result Map",
"properties": {
"total_rows": {
"type": "number"
},
"offset": {
"type": "number"
},
"size": {
"type": "number"
},
"rows": {
"type": "array",
"items": {
"$ref": "#/components/schemas/resultmap_domainprincipal"
}
}
}
}
List Memberships
GET /domains/{domainId}/principals/{principalId}/memberships
Parameters (5), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| domainId | Yes | string | The ID of the domain |
| principalId | Yes | string | The ID of the principal |
| sort | No | object | Defines how to sort fields in the result set |
| skip | No | number | Skips the result set cursor ahead the specified number of records |
| limit | No | number | Specifies the number of records to be handed back in the result set |
Response
{
"type": "object",
"description": "Result Map",
"properties": {
"total_rows": {
"type": "number"
},
"offset": {
"type": "number"
},
"size": {
"type": "number"
},
"rows": {
"type": "array",
"items": {
"$ref": "#/components/schemas/resultmap_domainprincipal"
}
}
}
}
List Teams
GET /domains/{domainId}/principals/{principalId}/teams
Parameters (7), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| domainId | Yes | string | The ID of the domain |
| principalId | Yes | string | The ID of the principal |
| teamableType | Yes | string | |
| teamableId | Yes | string | |
| sort | No | object | Defines how to sort fields in the result set |
| skip | No | number | Skips the result set cursor ahead the specified number of records |
| limit | No | number | Specifies the number of records to be handed back in the result set |
Response
{
"type": "object",
"description": "Result Map",
"properties": {
"total_rows": {
"type": "number"
},
"offset": {
"type": "number"
},
"size": {
"type": "number"
},
"rows": {
"type": "array",
"items": {
"$ref": "#/components/schemas/resultmap_domainprincipal"
}
}
}
}
Lists Domain Principal
GET /domains/{domainId}/principals
Parameters (5), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| domainId | Yes | string | The ID of the domain |
| groups | No | string | |
| sort | No | object | Defines how to sort fields in the result set |
| skip | No | number | Skips the result set cursor ahead the specified number of records |
| limit | No | number | Specifies the number of records to be handed back in the result set |
Response
{
"type": "object",
"description": "Result Map",
"properties": {
"total_rows": {
"type": "number"
},
"offset": {
"type": "number"
},
"size": {
"type": "number"
},
"rows": {
"type": "array",
"items": {
"$ref": "#/components/schemas/resultmap_domainprincipal"
}
}
}
}
Query
POST /domains/{domainId}/principals/query
Parameters (5), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| domainId | Yes | string | The ID of the domain |
| groups | No | string | |
| sort | No | object | Defines how to sort fields in the result set |
| skip | No | number | Skips the result set cursor ahead the specified number of records |
| limit | No | number | Specifies the number of records to be handed back in the result set |
Response
{
"type": "object",
"description": "Result Map",
"properties": {
"total_rows": {
"type": "number"
},
"offset": {
"type": "number"
},
"size": {
"type": "number"
},
"rows": {
"type": "array",
"items": {
"$ref": "#/components/schemas/resultmap_domainprincipal"
}
}
}
}
Read ACL
GET /domains/{domainId}/principals/{permissionedId}/acl/list
Parameters (2), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| domainId | Yes | string | The ID of the domain |
| permissionedId | Yes | string | The ID of the permissioned object or datastore |
Response
{
"type": "object",
"description": "Result Map of ACL entries",
"properties": {
"total_rows": {
"type": "number"
},
"offset": {
"type": "number"
},
"size": {
"type": "number"
},
"rows": {
"type": "array",
"items": {
"type": "object",
"properties": {
"_doc": {
"type": "string",
"title": "Principal ID"
},
"name": {
"type": "string",
"title": "Principal Name"
},
"type": {
"type": "string",
"title": "Principal Type"
},
"domainId": {
"type": "string"
},
"domainQualifiedId": {
"type": "string"
},
"domainQualifiedName": {
"type": "string"
},
"principalId": {
"type": "string",
"title": "Principal ID"
},
"userEmail": {
"type": "string"
},
"userFirstName": {
"type": "string"
},
"userLastName": {
"type": "string"
},
"authorities": {
"type": "array",
"title": "Authorities",
"items": {
"type": "string",
"title": "Authority Key"
}
}
}
}
}
}
}
Read ACL for Principal
GET /domains/{domainId}/principals/{permissionedId}/acl
Parameters (3), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| domainId | Yes | string | The ID of the domain |
| permissionedId | Yes | string | The ID of the permissioned object or datastore |
| id | Yes | string |
Response
{
"type": "object",
"description": "Result Map of Authority Keys",
"properties": {
"total_rows": {
"type": "number"
},
"offset": {
"type": "number"
},
"size": {
"type": "number"
},
"rows": {
"type": "array",
"items": {
"type": "string",
"description": "Authority Key"
}
}
}
}
Read Authorities Report
POST /domains/{domainId}/principals/{permissionedId}/authorities
Parameters (3), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| domainId | Yes | string | The ID of the domain |
| permissionedId | Yes | string | The ID of the permissioned object or datastore |
| HTTP Payload | Yes | string | HTTP Payload |
Response
{
"$ref": "#/components/schemas/authorityreport"
}
Read Domain Principal
GET /domains/{domainId}/principals/{principalId}
Parameters (3), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| domainId | Yes | string | The ID of the domain |
| principalId | Yes | string | The ID of the principal |
| groups | No | string |
Response
{
"type": "object",
"extends": "document",
"description": "Domain Principal",
"container": "domain",
"properties": {
"name": {
"type": "string"
},
"type": {
"type": "string"
},
"authorities": {
"type": "array",
"items": {
"type": "string",
"description": "Authority Key"
}
},
"_doc": null,
"_system": null
}
}
Remove Member
POST /domains/{domainId}/principals/{principalId}/members/remove
Parameters (3), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| domainId | Yes | string | The ID of the domain |
| principalId | Yes | string | The ID of the principal |
| id | Yes | string |
Response
{
"type": "object",
"description": "Status of Operation",
"properties": {
"ok": {
"type": "boolean",
"description": "Indicates whether the operation succeeded or not"
}
}
}
Revoke Authority
POST /domains/{domainId}/principals/{permissionedId}/authorities/{authorityId}/revoke
Parameters (4), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| domainId | Yes | string | The ID of the domain |
| permissionedId | Yes | string | The ID of the permissioned object or datastore |
| authorityId | Yes | string | The ID or authority key for the authority |
| id | Yes | string |
Response
{
"type": "object",
"description": "Status of Operation",
"properties": {
"ok": {
"type": "boolean",
"description": "Indicates whether the operation succeeded or not"
}
}
}
Summarize Access Policy
GET /domains/{domainId}/principals/{principalId}/access/policies/summary
Parameters (4), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| domainId | Yes | string | The ID of the domain |
| principalId | Yes | string | The ID of the principal |
| scope | No | string | |
| info | No | string |
Response
{
"type": "object",
"description": "Result Map",
"properties": {
"total_rows": {
"type": "number"
},
"offset": {
"type": "number"
},
"size": {
"type": "number"
},
"rows": {
"type": "array",
"items": {
"$ref": "#/components/schemas/resultmap_accessPolicy"
}
}
}
}
Update Domain Principal
PUT /domains/{domainId}/principals/{principalId}
Parameters (2), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| domainId | Yes | string | The ID of the domain |
| principalId | Yes | string |
Response
{
"type": "object",
"description": "Status of Operation",
"properties": {
"ok": {
"type": "boolean",
"description": "Indicates whether the operation succeeded or not"
}
}
}
Upload Attachment
POST /domains/{domainId}/principals/{principalId}/attachments/{attachmentId}
Parameters (3), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| domainId | Yes | string | The ID of the domain |
| principalId | Yes | string | The ID of the principal |
| attachmentId | Yes | string |
Response
{
"type": "object",
"description": "Status of Operation (with ID)",
"extends": "status",
"properties": {
"_doc": {
"type": "string"
},
"ok": null
}
}
Upload Attachments
POST /domains/{domainId}/principals/{principalId}/attachments
Parameters (2), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| domainId | Yes | string | The ID of the domain |
| principalId | Yes | string | The ID of the principal |
Response
{
"type": "object",
"description": "Result Map",
"properties": {
"total_rows": {
"type": "number"
},
"offset": {
"type": "number"
},
"size": {
"type": "number"
},
"rows": {
"type": "array",
"items": {
"$ref": "#/components/schemas/resultmap_attachment"
}
}
}
}
Schema
{
"type": "object",
"extends": "document",
"description": "Domain Principal",
"container": "domain",
"properties": {
"name": {
"type": "string"
},
"type": {
"type": "string"
},
"authorities": {
"type": "array",
"items": {
"type": "string",
"description": "Authority Key"
}
},
"_doc": null,
"_system": null
},
"id": "principal"
}