{"openapi":"3.0.3","info":{"version":"8.6","title":"Active Roles API","description":"This API specification lists the endpoints that you can use to manage and configure directory objects within Active Roles.","termsOfService":"http://oneidentity.com,","contact":{"name":"Active Roles API Community","url":"https://www.oneidentity.com/community/active-roles"}},"tags":[{"name":"containers","description":"Manage containers."},{"name":"hierarchy","description":"Navigate the object hierarchy and move objects within the container hierarchy."},{"name":"objects","description":"Manage Active Roles objects and object attributes."},{"name":"users","description":"Manage Active Roles users."},{"name":"groups","description":"Manage Active Roles groups."},{"name":"computers","description":"Manage Active Roles computers."},{"name":"schema","description":"View Active Roles consolidated schema."},{"name":"changeHistory","description":"Search change history within Active Roles."},{"name":"access rules","description":"Manage Active Roles access rules."},{"name":"access templates","description":"Manage Active Roles access templates."},{"name":"access delegations","description":"Manage Active Roles delegated access (access template links)."},{"name":"managed units","description":"Manage Active Roles managed units."},{"name":"policies","description":"Manage Active Roles access policies."},{"name":"policy associations","description":"Manage Active Roles access policy associations (access policy links)."},{"name":"workflow definitions","description":"Manage Active Roles workflows."},{"name":"script modules","description":"Manage Active Roles script modules."}],"security":[{"bearerAuth":[]}],"paths":{"/api/v1/containers":{"get":{"operationId":"/getContainers","tags":["containers"],"summary":"Lists the root containers of Active Roles","description":"`/containers` is used with `/children` and `/parent` to navigate the the Active roles Directory Information Tree (DIT). The pattern for navigating containers is suitable for building a dynamic datasource for  [Angular Material tree control](https://material.angular.io/components/tree/overview):\n\n1. Use `GET /containers` to find a starting container\n2. Then use `GET /children/{objectGuid}/` to get the child containers and objects\n\nThe Active Roles DIT has the following base 'namingContexts' for containers, which are returned as follows:\n\n* `Configuration` - The special Active Roles Configuration Container\n* `Active Directory` - Active Directory domains \n* `AD LDS (ADAM)` - AD LDS directories\n* `Azure` - Azure domains\n\nAdditionally, any domain (domainDNS) objects that are managed by Active Roles will also be returned. ","parameters":[],"responses":{"200":{"description":"Array of containers","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Container"}},"examples":{"Example 1":{"value":[{"objectClass":"edsRootContainer","objectGUID":"79ea6a67-9c0a-485f-ba8f-71f8635daab3","allowedChildClasses":["edsAccessTemplatesContainer","edsApplicationConfigurationContainer","edsManagedUnitsContainer","edsCACEs","edsPolicyConfiguration","edsPolicyObjectsContainer","edsPolicyObjectLinksContainer","edsPolicyTypesContainer","edsScriptModuleContainer","edsWorkflowsContainer"],"distinguishedName":"CN=Configuration"},{"objectClass":"edsDomainsCollection","objectGUID":"80a8172f-2d21-4035-b5d0-2675f24b66a1","distinguishedName":"CN=Active Directory"},{"objectClass":"edsADAMInstancesCollection","objectGUID":"697ce9e4-db96-4114-8dd2-d16aa8e5e257","distinguishedName":"CN=AD LDS (ADAM)"},{"objectClass":"edsAzureContainer","objectGUID":"60678210-3ecf-4982-b61f-f25968117210","allowedChildClasses":"edsAzureTenantcontainer","distinguishedName":"CN=Azure,CN=Configuration"},{"objectClass":"domainDNS","objectGUID":"a21188a2-694d-4746-ae17-1486f13d2295","objectCategory":"CN=Domain-DNS,CN=Schema,CN=Configuration,DC=roles1,DC=net","allowedChildClasses":["builtinDomain","classStore","computer","container","domain","country","configuration","device","contact","dfsConfiguration","oncRpc","lostAndFound","domainDNS","domainPolicy","rFC822LocalPart","msTPM-InformationObjectsContainer","group","friendlyCountry","groupOfUniqueNames","organizationalUnit","msSFU30NetworkUser","groupPolicyContainer","nisObject","msDS-ManagedServiceAccount","inetOrgPerson","msDS-AzAdminManager","intellimirrorGroup","ipNetwork","ipProtocol","volume","ipService","locality","mSMQMigratedUser","msSFU30MailAliases","msCOM-Partition","infrastructureUpdate","msCOM-PartitionSet","msDS-QuotaContainer","msDS-DeviceContainer","msDS-GroupManagedServiceAccount","organization","msDS-ShadowPrincipalContainer","msExchConfigurationContainer","msExchOrganizationContainer","msExchSystemObjectsContainer","msImaging-PSPs","msMQ-Custom-Recipient","physicalLocation","msPKI-Key-Recovery-Agent","msSFU30NetId","nisMap","printQueue","nisNetgroup","remoteMailRecipient","rpcContainer","samServer","user"],"distinguishedName":"DC=roles1,DC=net","objectSid":"S-1-5-21-1344975646-3604366185-3116334316"}]}}}},"headers":{"Link":{"$ref":"#/components/headers/Link"}}},"401":{"$ref":"#/components/responses/401Unauthorized"}}}},"/api/v1/children/{objectGuid}":{"get":{"operationId":"getContainerChildren","tags":["hierarchy"],"summary":"Get all children of a container.","parameters":[{"name":"objectGuid","in":"path","required":true,"description":"GUID of the container","schema":{"type":"string","example":"73524b35-51d2-4ed7-aaed-8ac728bb6a22"}},{"$ref":"#/components/parameters/PageSizeParam"}],"responses":{"200":{"description":"A `PaginatedResponse` containing an array of child objects and optionally a nextPage token.","headers":{},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse"}}}},"400":{"description":"If the request contains a client-side error, a `ProblemDetails` object is returned, providing a detailed description of the error. A 400 response code is also returned if the container that was specified does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"401":{"$ref":"#/components/responses/401Unauthorized"},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"examples":{"Example 1":{"value":{"type":"https://tools.ietf.org/html/rfc7231#section-6.6","title":"Internal Server Error","status":500,"instance":"/ActiveRoles/1.0.1/objects/37BDC207-DA12-4E85-AD79-FBED47F9ECE8"}}}}}}},"description":"The API uses cursor pagination with query parameters for `pageSize` to adjust behavior.  If the request returns a response with multiple pages, use the `nextPage` property to access the next page."}},"/api/v1/children":{"get":{"operationId":"getContainerChildrenPagination","description":"Used to paginate through the results of /children/{objectGuid} via the `nextPage` token. The pagination token has a timed life tied to the initial query.</br></br><b>NOTE:</b> Pagination is forward only, if the next page was already queried, querying the previous page will result in error.","summary":"Paginate through all children of a container","tags":["hierarchy"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse"}}}},"400":{"description":"If the request contains a client-side error, a `ProblemDetails` object is returned, providing a detailed description of the error.","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"}},"x-examples":{"Example 1":{"type":"pagination.error","title":"Pagination error","status":400,"detail":"Pagination token refers to non-existent pagination"}}},"examples":{"Example 1":{"value":{"errors":{},"type":"input.field.validation","title":"Input validation","status":400,"detail":"Either search parameters or nextPage token need to be provided"}},"Example 2":{"value":{"type":"pagination.error","title":"Pagination error","status":400,"detail":"Pagination token refers to non-existent pagination"}},"Example 3":{"value":{"type":"pagination.error","title":"Pagination error","status":400,"detail":"Pagination token refers to invalid page"}}}}}},"401":{"$ref":"#/components/responses/401Unauthorized"},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"examples":{"Example 1":{"value":{"type":"https://tools.ietf.org/html/rfc7231#section-6.6","title":"Internal Server Error","status":500,"instance":"/ActiveRoles/1.0.1/objects/37BDC207-DA12-4E85-AD79-FBED47F9ECE8"}}}}}}},"parameters":[{"schema":{"type":"string"},"in":"query","name":"nextPage","description":"token used to access the next page of a PaginatedResponse"}]}},"/api/v1/parent/{objectGuid}":{"get":{"operationId":"getParent","tags":["hierarchy"],"summary":"Get the parent of an object","parameters":[{"name":"objectGuid","in":"path","required":true,"description":"GUID of the container","schema":{"type":"string","example":"73524b35-51d2-4ed7-aaed-8ac728bb6a22"}}],"responses":{"200":{"description":"Returns the parent of the specified object. If the specied object is the root object which does not have a parent, it will return 400 BadRequest.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Container"},"examples":{"Example 1":{"value":{"objectClass":"organizationalUnit","description":"Functional test root container","whenChanged":"2024-08-06T11:00:37Z","objectGUID":"abf5f8c1-95b3-4e76-a38d-7875d7fb2e04","objectCategory":"CN=Organizational-Unit,CN=Schema,CN=Configuration,DC=roles1,DC=net","allowedChildClasses":["account","groupOfUniqueNames","room","applicationEntity","applicationProcess","msExchOrganizationContainer","applicationVersion","ipsecNegotiationPolicy","container","classStore","computer","contact","intellimirrorSCP","dSA","organizationalRole","msTAPI-RtPerson","device","document","msCOM-Partition","documentSeries","domainPolicy","rFC822LocalPart","group","physicalLocation","msPKI-Key-Recovery-Agent","groupOfNames","organizationalUnit","groupPolicyContainer","rRASAdministrationConnectionPoint","msCOM-PartitionSet","indexServerCatalog","inetOrgPerson","nisObject","msDS-ManagedServiceAccount","msDS-AzAdminManager","mS-SQL-OLAPServer","intellimirrorGroup","ipNetwork","msTAPI-RtConference","ipProtocol","ipService","ipsecFilter","mS-SQL-SQLServer","ipsecISAKMPPolicy","ipsecNFA","mSMQMigratedUser","ipsecPolicy","locality","msDS-App-Configuration","msDS-AppData","msDS-GroupManagedServiceAccount","organizationalPerson","msDS-ShadowPrincipalContainer","msExchConfigurationContainer","msMQ-Group","msExchSystemObjectsContainer","msieee80211-Policy","msImaging-PSPs","msMQ-Custom-Recipient","nTFRSSettings","nisMap","printQueue","nisNetgroup","oncRpc","person","remoteMailRecipient","remoteStorageServicePoint","residentialPerson","rpcContainer","serviceAdministrationPoint","serviceConnectionPoint","user","volume"],"distinguishedName":"OU=FunctionalTests,DC=roles1,DC=net","name":"FunctionalTests"}}}}}},"400":{"description":"If the request contains a client-side error, a `ProblemDetails` object is returned, providing a detailed description of the error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"401":{"$ref":"#/components/responses/401Unauthorized"},"404":{"$ref":"#/components/responses/404NotFound"},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"examples":{"Example 1":{"value":{"type":"https://tools.ietf.org/html/rfc7231#section-6.6","title":"Internal Server Error","status":500,"instance":"/ActiveRoles/1.0.1/objects/37BDC207-DA12-4E85-AD79-FBED47F9ECE8"}}}}}}},"description":"Returns the parent of the object specified by its objectGuid. "},"patch":{"operationId":"moveToContainer","tags":["hierarchy"],"summary":"Move an object to a new container.","description":"Moves the object specified by its `objectGuid` from its current location to the container specified in the request body.","parameters":[{"name":"objectGuid","in":"path","required":true,"description":"GUID of the object to move","schema":{"type":"string","example":"73524b35-51d2-4ed7-aaed-8ac728bb6a22"}}],"requestBody":{"description":"GUID of the new parent.","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewParent"},"examples":{"Example 1":{"value":{"objectGuid":"F4ECB105-DDB5-4870-AC29-A395CCC13BA3"}}}}}},"responses":{"200":{"description":"When the operation succeeded the `BaseAttributes` of the new parent are returned","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseAttributes"}}}},"400":{"description":"If the request contains a client-side error, a `ProblemDetails` object is returned, providing a detailed description of the error. 400 code is returned for example if the target container does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"401":{"$ref":"#/components/responses/401Unauthorized"},"404":{"$ref":"#/components/responses/404NotFound"},"500":{"description":"Shared Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"examples":{"Example 1":{"value":{"type":"https://tools.ietf.org/html/rfc7231#section-6.6","title":"Internal Server Error","status":500,"instance":"/ActiveRoles/1.0.1/objects/37BDC207-DA12-4E85-AD79-FBED47F9ECE8"}}}}}}}}},"/api/v1/objects":{"get":{"tags":["objects"],"summary":"Serach for Active Roles objects.","description":"`/objects` can be used to generically search for Active Roles objects. By default, only the object's `BaseAttributes` are returned. Use query parameter to specify additional attributes to return. If there are more results than `pageSize` then the server will return a `nextPage` token in the response for further pagination. The pagination token has a timed life tied to the initial query.\n\nNOTE: Pagination is forward only, if the next page was already queried, querying the previous page will result in error.\n","operationId":"searchObjects","parameters":[{"name":"base","in":"query","required":true,"description":"Where to start searching for objects. Th ObjectGuid or LDAP distinguished name of an existing object (container)","schema":{"type":"string","example":"cn=users,dc=example,dc=com"}},{"name":"scope","in":"query","description":"The LDAP search scope: \n* `base` - returns only the base. For example, the following requests wil return the same object:\n  *  GET /objects/2c0c2e55-c952-4cce-b2f4-ad6c09dba454 \n  *  GET /objects/?base=2c0c2e55-c952-4cce-b2f4-ad6c09dba454\n* `one` - return the immediate subordinates of the base   object (excludes objects in nested subordinate containers). \n* `sub` - return all of the subordinates of the base object (incuding those nested in subordinate containers)\n","schema":{"type":"string","enum":["base","one","sub"],"default":"sub"}},{"name":"filter","in":"query","description":"LDAP search filter (urlencoded).","schema":{"type":"string","default":"(objectClass=*)","example":"%28objectClass%3D%2A%29"}},{"$ref":"#/components/parameters/AttributesParam"},{"$ref":"#/components/parameters/PageSizeParam"},{"$ref":"#/components/parameters/NextPageParam"}],"responses":{"200":{"description":"On success a `PaginatedResponse` is returned with a result set matching search criteria and an optional nextPage token for pagination","headers":{},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse"},"examples":{"Example 1":{"value":{"items":[{"objectClass":"organizationalUnit","whenChanged":"2024-08-06T11:01:54Z","objectGUID":"075bff29-f869-4cc5-9e3e-263c48434580","objectCategory":"CN=Organizational-Unit,CN=Schema,CN=Configuration,DC=roles1,DC=net","distinguishedName":"OU=APAC_LOC,OU=FunctionalTests,DC=roles1,DC=net","name":"APAC_LOC"},{"objectClass":"group","description":"dev personel","whenChanged":"2024-08-06T11:02:19Z","objectGUID":"ddc342b1-da2c-4385-b1eb-c128a1c7883e","objectCategory":"CN=Group,CN=Schema,CN=Configuration,DC=roles1,DC=net","distinguishedName":"CN=InDevelopers,OU=APAC_LOC,OU=FunctionalTests,DC=roles1,DC=net","groupType":-2147483640,"name":"InDevelopers","objectSid":"S-1-5-21-1344975646-3604366185-3116334316-313611","sAMAccountName":"InDevelopers"},{"objectClass":"group","description":"sales force","whenChanged":"2024-08-06T11:02:23Z","objectGUID":"9d37ec2f-d5e2-4693-896d-f391ec9e7718","objectCategory":"CN=Group,CN=Schema,CN=Configuration,DC=roles1,DC=net","distinguishedName":"CN=InSales,OU=APAC_LOC,OU=FunctionalTests,DC=roles1,DC=net","groupType":-2147483640,"name":"InSales","objectSid":"S-1-5-21-1344975646-3604366185-3116334316-313612","sAMAccountName":"InSales"}],"nextPage":"eyJQYWdpbmF0b3JJZCI6IjMzNmE2ZGQ2LWYwN2ItNDQ0Zi05ZGRjLWViN2Y0ZjA5NmU5MCIsIk5leHRJdGVtSW5kZXgiOjN9"}}}}}},"400":{"description":"If the request contains a client-side error, a `ProblemDetails` object is returned, providing a detailed description of the error. If the container specified by the `base` parameter does not exist, 400 code is returned.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"examples":{"Example 1":{"value":{"errors":{},"type":"input.field.validation","title":"Input validation","status":400,"detail":"Invalid search base: CN=tmp3,CN=Users,DC=roles1,DC=net,DC=roles1,DC=net"}}}}}},"401":{"$ref":"#/components/responses/401Unauthorized"},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"examples":{"Example 1":{"value":{"type":"https://tools.ietf.org/html/rfc7231#section-6.6","title":"Internal Server Error","status":500,"instance":"/ActiveRoles/1.0.1/objects/37BDC207-DA12-4E85-AD79-FBED47F9ECE8"}}}}}}}},"post":{"operationId":"createObject","tags":["objects"],"summary":"Create a new object.","description":"Used to create a new AD object or Azure object. This method does not replace objects. If there is an existing object with same name in the parent container, an error will be returned. In this case use `DELETE` to delete the existing object, or `PATCH /objects/{objectGuid}` to modify the existing object.","requestBody":{"description":"Create a new object under the parent that you specified via its `objectGuid`. The `objectClass` is specified by the `objectCategory` attribute. In most cases the `name` attribute is required. Optional attributes can also be specified but are not required. \r\nFor more information on the schema of objects, see [Active Directory Schema](https://docs.microsoft.com/en-us/windows/win32/adschema/active-directory-schema). <br/><br/><b>IMPORTANT:</b> You must specify all required attributes, otherwise the request will fail. The following examples show the minimum required attributes for different types of users and groups.","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewObject"},"examples":{"Example 1 - Active Directory user":{"value":{"parent":"F4ECB105-DDB5-4870-AC29-A395CCC13BA3","createOne":{"objectCategory":"user","name":"UserName1","description":"sample user"}}},"Example 2 - Azure user":{"value":{"parent":"F4ECB105-DDB5-4870-AC29-A395CCC13BA3","createOne":{"objectCategory":"edsAzureUser","edsaAzureUserPrincipalName":"AzureUser@microsoft.com","name":"AzureUser1","edsaAzureDisplayName":"AzureUser","edsaAzureUserPassword":"Passw0rd123!!"}}},"Example 3 - Azure guest user":{"value":{"parent":"F4ECB105-DDB5-4870-AC29-A395CCC13BA3","createOne":{"objectCategory":"edsAzureGuestUser","edsaAzureGuestUserEmail":"AzureGuestUser@email.com","name":"AzureGuestUser1"}}},"Example 4 - Azure contact":{"value":{"parent":"F4ECB105-DDB5-4870-AC29-A395CCC13BA3","createOne":{"objectCategory":"edsAzureContact","name":"AzureContact1","edsaAzureDisplayName":"AzureContact1","edsaAzureContactEmail":"AzureContact@microsoft.com"}}},"Example 5 - Assigned security group":{"value":{"parent":"F4ECB105-DDB5-4870-AC29-A395CCC13BA3","createOne":{"objectCategory":"edsAzureSecurityGroup","edsaAzureDisplayName":"AssignedGroup1","name":"AssignedGroup1"}}},"Example 6 - Dynamic security group":{"value":{"parent":"F4ECB105-DDB5-4870-AC29-A395CCC13BA3","createOne":{"objectCategory":"edsAzureSecurityGroup","edsaAzureDisplayName":"edsDynamicGroup","name":"DynamicGroup1","edsaGroupMembershipType":"Dynamic Members","edsaGroupMembershipRules":"user.department -eq \"Sales\""}}},"Example 7 - Shared mailbox":{"value":{"parent":"F4ECB105-DDB5-4870-AC29-A395CCC13BA3","createOne":{"objectCategory":"edsExoSharedMailbox","name":"SharedMailbox1","edsaExoObjectName":"SharedMailbox"}}},"Example 8 - Resource mailbox":{"value":{"parent":"F4ECB105-DDB5-4870-AC29-A395CCC13BA3","createOne":{"objectCategory":"edsExoRoomMailbox","name":"ResourceMailbox1","edsaExoObjectName":"ResourceMailbox"}}},"Example 9 - Distribution group":{"value":{"parent":"F4ECB105-DDB5-4870-AC29-A395CCC13BA3","createOne":{"objectCategory":"edsExoDistributionGroups","name":"DistributionGroup1","edsaExoObjectName":"DistributionGroup"}}},"Example 10 - Dynamic distribution group":{"value":{"parent":"F4ECB105-DDB5-4870-AC29-A395CCC13BA3","createOne":{"objectCategory":"edsExoDynamicDistributionGroup","name":"DynamicDistributionGroup1","edsaExoObjectName":"DynamicDistributionGroup","edsaExoMemberRecipientType":"AllRecipients"}}}}}}},"responses":{"200":{"description":"Creation successful. Returns the base attributes of the new object.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseAttributes"},"examples":{"Example 1":{"value":{"objectClass":"user","description":"sample user","distinguishedName":"CN=UserName1,OU=Bug388837,DC=roles1,DC=net","whenChanged":"10/11/2024 10:34:21 AM","displayName":"UserName1","name":"UserName1","objectGUID":"8c718999-2dc8-4bbd-8fbc-d3c49f9521d7","objectCategory":"CN=Person,CN=Schema,CN=Configuration,DC=roles1,DC=net"}}}}}},"400":{"description":"If the request contains a client-side error, a `ProblemDetails` object is returned, providing a detailed description of the error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"examples":{"Example 1":{"value":{"type":"schema.error","title":"Schema error","status":400,"detail":"Could not construct child's distinguishedName, naming attribute missing"}}}}}},"401":{"$ref":"#/components/responses/401Unauthorized"},"500":{"description":"Shared Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"examples":{"Example 1":{"value":{"type":"https://tools.ietf.org/html/rfc7231#section-6.6","title":"Internal Server Error","status":500,"instance":"/ActiveRoles/1.0.1/objects/37BDC207-DA12-4E85-AD79-FBED47F9ECE8"}}}}}}}}},"/api/v1/objects/{objectGuid}":{"get":{"tags":["objects"],"summary":"Search for a specific object.","description":"By default, only `BaseAttributes` of the object are returned. Use the `attributes` query parameter to specify other attributes to return. \n","operationId":"getObject","parameters":[{"name":"objectGuid","in":"path","required":true,"description":"ObjectGuid of an object","schema":{"type":"string"},"example":"0d894bed-6510-40a4-afb5-e3e2a1934ecc"},{"$ref":"#/components/parameters/AttributesParam"},{"$ref":"#/components/parameters/FromQueryParam"}],"responses":{"200":{"description":"On success returns an `Object` containing the `BaseAttributes` of the queried Active Roles object extended with the attributes specified in the query.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object"},"examples":{}}}},"400":{"description":"If the request contains a client-side error, a `ProblemDetails` object is returned, providing a detailed description of the error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"examples":{"Example 1":{"value":{"type":"schema.error","title":"Schema error","status":400,"detail":"Attribute not defined in ActiveRoles schema: invalidAttr"}}}}}},"401":{"$ref":"#/components/responses/401Unauthorized"},"404":{"$ref":"#/components/responses/404NotFound"},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"examples":{"Example 1":{"value":{"type":"https://tools.ietf.org/html/rfc7231#section-6.6","title":"Internal Server Error","status":500,"instance":"/ActiveRoles/1.0.1/objects/37BDC207-DA12-4E85-AD79-FBED47F9ECE8"}}}}}}}},"patch":{"operationId":"modifyObject","tags":["objects"],"summary":"Modify the attributes of an object.","description":"Some object properties are read-only (cannot be modified):\n* `objectGUID`\n* `distinguishedName`\n* `whenChanged`\n* `objectClass`\n* `objectSid`\n\nAttempting to modify any of these (or other) read-only properties will result in `400` error.\n\nAttributes with multiple values cannot be *incrementally* modified with this endpoint, you can only modify all values at once. Use `PATCH /object/{objectGid}/attributes/{attributeName}` to add or remove a single value of a multi-valued attribute. \n\nTo remove an attribute entirely, use `DELETE /object/{objectGuid}/attributes/{attributeName}`.\n\nTo move an object, use `PATCH /parent/{objectGuid}`.\n","parameters":[{"name":"objectGuid","in":"path","required":true,"description":"GUID of an object","schema":{"type":"string","example":"73524b35-51d2-4ed7-aaed-8ac728bb6a22"}}],"requestBody":{"description":"Name value pairs for the attributes to be modified.","required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"oneOf":[{"type":"string","description":"Single-valued string, DN, generalized-time, or base64-encoded binary attribute."},{"type":"integer","description":"Single-valued integer attribute (e.g., userAccountControl, groupType)."},{"type":"boolean","description":"Single-valued boolean attribute."},{"type":"array","description":"Multi-valued attribute. Each element follows the same type rules as single-valued attributes.","items":{"oneOf":[{"type":"string"},{"type":"integer"},{"type":"boolean"}]}}]}},"examples":{"Example 1":{"value":{"description":"modified"}}}}}},"responses":{"200":{"description":"The modification successful. Returns `BaseAttributes` of modified object","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseAttributes"},"examples":{"Example 1":{"value":{"objectClass":"user","description":"European wild cat","distinguishedName":"CN=ArkilPetra,OU=NAM_LOC,OU=FunctionalTests,DC=roles1,DC=net","whenChanged":"11/21/2024 11:37:39 AM","displayName":"Petra Arkil","name":"ArkilPetra","objectGUID":"f4af70f4-3b3d-4e27-8439-63dabec04067","objectCategory":"CN=Person,CN=Schema,CN=Configuration,DC=roles1,DC=net"}}}}}},"400":{"description":"If the request contains a client-side error, a `ProblemDetails` object is returned, providing a detailed description of the error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"examples":{"Example 1":{"value":{"type":"schema.error","title":"Schema error","status":400,"detail":"Update of readonly attribute is not possible: objectGUID"}}}}}},"401":{"$ref":"#/components/responses/401Unauthorized"},"404":{"description":"Resource specified by the objectGuid does not exist or was not found."},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"examples":{"Example 1":{"value":{"type":"https://tools.ietf.org/html/rfc7231#section-6.6","title":"Internal Server Error","status":500,"instance":"/ActiveRoles/1.0.1/objects/37BDC207-DA12-4E85-AD79-FBED47F9ECE8"}}}}}}}},"delete":{"operationId":"deleteObject","tags":["objects"],"summary":"Delete an object.","parameters":[{"name":"objectGuid","in":"path","required":true,"description":"GUID of an object","schema":{"type":"string"},"example":"0d894bed-6510-40a4-afb5-e3e2a1934ecc"},{"schema":{"type":"boolean","default":false},"in":"query","name":"SubTree","description":"Useful to remove containers. If set removes the target object and all child object recursively ","allowEmptyValue":false}],"responses":{"200":{"description":"Delete successful"},"400":{"description":"If the request contains a client-side error, a `ProblemDetails` object is returned, providing a detailed description of the error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"examples":{"Example 1":{"value":{"type":"delete.error","title":"Delete error","status":400,"detail":"You do not have sufficient privileges to delete 'CN=Configuration,DC=roles1,DC=net', or this object is protected from accidental deletion.; The operation cannot be performed because child objects exist. This operation can only be performed on a leaf object. (Exception from HRESULT: 0x8007208C)","CN=Configuration,DC=roles1,DC=net":"You do not have sufficient privileges to delete 'CN=Configuration,DC=roles1,DC=net', or this object is protected from accidental deletion.; The operation cannot be performed because child objects exist. This operation can only be performed on a leaf object. (Exception from HRESULT: 0x8007208C)"}}}}}},"401":{"$ref":"#/components/responses/401Unauthorized"},"404":{"description":"Resource specified by the objectGuid does not exist or was not found."},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"examples":{"Example 1":{"value":{"type":"https://tools.ietf.org/html/rfc7231#section-6.6","title":"Internal Server Error","status":500,"instance":"/ActiveRoles/1.0.1/objects/37BDC207-DA12-4E85-AD79-FBED47F9ECE8"}}}}}}}}},"/api/v1/objects/{objectGuid}/attributes/{attributeName}":{"get":{"operationId":"getObjectAttributeValues","tags":["objects"],"summary":"Search for the values of an attribute.","parameters":[{"name":"objectGuid","in":"path","required":true,"description":"GUID of an object","schema":{"type":"string"},"example":"0d894bed-6510-40a4-afb5-e3e2a1934ecc"},{"name":"attributeName","in":"path","required":true,"description":"Name of an attribute","schema":{"type":"string"},"example":"member"}],"responses":{"200":{"description":"The values of the requested attribute. The endpoint always returns all values in a single response and does not paginate.","headers":{},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttributeValues"},"examples":{"Multi-valued DN attribute (member)":{"value":{"items":["CN=RobersGiavani,OU=EU_LOC,OU=FunctionalTests,DC=roles1,DC=net","CN=HaythRobin,OU=EU_LOC,OU=FunctionalTests,DC=roles1,DC=net","CN=PainterDavy,OU=EU_LOC,OU=FunctionalTests,DC=roles1,DC=net"]}},"Single-valued integer attribute (userAccountControl)":{"value":{"items":[512]}},"Single-valued boolean attribute (msExchHideFromAddressLists)":{"value":{"items":[true]}},"Single-valued string attribute (sAMAccountName)":{"value":{"items":["jsmith"]}}}}}},"400":{"description":"If the request contains a client-side error, a `ProblemDetails` object is returned, providing a detailed description of the error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"examples":{"Example 1":{"value":{"type":"schema.error","title":"Schema error","status":400,"detail":"attribute is not defined in ActiveRoles schema"}}}}}},"401":{"$ref":"#/components/responses/401Unauthorized"},"404":{"$ref":"#/components/responses/404NotFound"},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"examples":{"Example 1":{"value":{"type":"https://tools.ietf.org/html/rfc7231#section-6.6","title":"Internal Server Error","status":500,"instance":"/ActiveRoles/1.0.1/objects/37BDC207-DA12-4E85-AD79-FBED47F9ECE8"}}}}}}},"description":"Returns the values associated with the specified attribute on the requested object as a collection. Allows to query of both single and multi-value attributes. Returns all values at once, does not enter pagination.\r\n"},"put":{"operationId":"setAttributeValues","tags":["objects"],"summary":"Set or replace the values of an attribute.","parameters":[{"name":"objectGuid","in":"path","required":true,"description":"GUID of an object","schema":{"type":"string"},"example":"0d894bed-6510-40a4-afb5-e3e2a1934ecc"},{"name":"attributeName","in":"path","required":true,"description":"Name of an attribute","schema":{"type":"string"},"example":"member"}],"requestBody":{"description":"Array of new values","required":true,"content":{"application/json":{"schema":{"type":"array","description":"Array of values to set on the attribute. Replaces all existing values of the named attribute.","items":{"oneOf":[{"type":"string","description":"String, DN, generalized-time, or base64-encoded binary value."},{"type":"integer","description":"Integer value (e.g., userAccountControl, groupType)."},{"type":"boolean","description":"Boolean value."}]}},"examples":{"Example 1":{"value":["CN=RobersGiavani,OU=EU_LOC,OU=FunctionalTests,DC=roles1,DC=net","CN=HaythRobin,OU=EU_LOC,OU=FunctionalTests,DC=roles1,DC=net","CN=YusupovMelli,OU=EU_LOC,OU=FunctionalTests,DC=roles1,DC=net"]}}}}},"responses":{"200":{"description":"New value(s) set successfully"},"400":{"description":"If the request contains a client-side error, a `ProblemDetails` object is returned, providing a detailed description of the error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"examples":{"Example 1":{"value":{"type":"schema.error","title":"Schema error","status":400,"detail":"Update of readonly attribute is not possible: edsvaFriendlyName"}}}}}},"401":{"$ref":"#/components/responses/401Unauthorized"},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"examples":{"Example 1":{"value":{"type":"https://tools.ietf.org/html/rfc7231#section-6.6","title":"Internal Server Error","status":500,"instance":"/ActiveRoles/1.0.1/objects/37BDC207-DA12-4E85-AD79-FBED47F9ECE8"}}}}}}},"description":"Sets or replaces the values associated with the specified attribute. Useful for multi-valued attributes. Attributes are provided as a JSON array."},"patch":{"operationId":"modifyAttributeValues","tags":["objects"],"summary":"Modify the values of multi-valued attributes.","description":"Removing non-existent values does not result in an error. Adding values that already exist is silently ignored (you cannot add dupilcate values, but no error returns).</br></br>**NOTE:** You can add new members to a group using GUIDs, but removing does not work in every scenario. Therefore, One Identity recommends using Distinguished Names (DNs) for this purpose.\n","parameters":[{"name":"objectGuid","in":"path","required":true,"description":"GUID of an object","schema":{"type":"string"},"example":"0d894bed-6510-40a4-afb5-e3e2a1934ecc"},{"name":"attributeName","in":"path","required":true,"description":"Name of an attribute","schema":{"type":"string"},"example":"businessCategory"}],"requestBody":{"description":"A value modification with values to add or remove.","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttributeValuesModification"},"examples":{"Example 1":{"value":{"addValues":["Sales","Public Relations"],"removeValues":["Marketing"]}}}}}},"responses":{"200":{"description":"Modification successful"},"400":{"description":"If the request contains a client-side error, a `ProblemDetails` object is returned, providing a detailed description of the error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"examples":{"Example 1":{"value":{"errors":{},"type":"input.field.validation","title":"Input validation","status":400,"detail":"Identical item(s) found: Sales."}}}}}},"401":{"$ref":"#/components/responses/401Unauthorized"},"404":{"description":"Resource specified by the objectGuid does not exist or was not found."},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"examples":{"Example 1":{"value":{"type":"https://tools.ietf.org/html/rfc7231#section-6.6","title":"Internal Server Error","status":500,"instance":"/ActiveRoles/1.0.1/objects/37BDC207-DA12-4E85-AD79-FBED47F9ECE8"}}}}}}}},"delete":{"operationId":"deleteObjectAttribute","tags":["objects"],"summary":"Clear all values and remove the attribute.","parameters":[{"name":"objectGuid","in":"path","required":true,"description":"GUID of an object","schema":{"type":"string"},"example":"0d894bed-6510-40a4-afb5-e3e2a1934ecc"},{"name":"attributeName","in":"path","required":true,"description":"Name of an attribute","schema":{"type":"string"},"example":"displayName"}],"responses":{"200":{"description":"Delete successful"},"400":{"description":"If the request contains a client-side error, a `ProblemDetails` object is returned, providing a detailed description of the error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"examples":{"Example 1":{"value":{"type":"schema.error","title":"Schema error","status":400,"detail":"Update of readonly attribute is not possible: objectGUID"}}}}}},"401":{"$ref":"#/components/responses/401Unauthorized"},"404":{"description":"Resource specified by the objectGuid does not exist or was not found."},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"examples":{"Example 1":{"value":{"type":"https://tools.ietf.org/html/rfc7231#section-6.6","title":"Internal Server Error","status":500,"instance":"/ActiveRoles/1.0.1/objects/37BDC207-DA12-4E85-AD79-FBED47F9ECE8"}}}}}}}}},"/api/v1/objects/{objectGuid}/owners":{"get":{"tags":["objects"],"summary":"Get owners of this object (if any).","description":"An owner of an object indicates who is responsible for the object. One owner may be designated as primary. Multiple owners may be designated as secondary. Owners may be users or groups. There may be no owners set.","operationId":"getOwners","parameters":[{"name":"objectGuid","in":"path","required":true,"description":"GUID of an object","schema":{"type":"string"},"example":"0d894bed-6510-40a4-afb5-e3e2a1934ecc"}],"responses":{"200":{"description":"Returns the owners of this object. `items` is an empty array if the object has no owners.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Owners"},"examples":{"With owners":{"summary":"Primary plus two secondary owners","value":{"items":[{"isSecondary":false,"objectClass":"user","description":"Helpdesk team lead","distinguishedName":"CN=John Smith,OU=Admins,DC=corp,DC=local","whenChanged":"2026-03-14T12:45:00Z","displayName":"John Smith","name":"John Smith","objectGUID":"DEC7C17F-7D3C-4C59-8FCD-1C14E3BB0032","objectCategory":"CN=Person,CN=Schema,CN=Configuration,DC=corp,DC=local"},{"isSecondary":true,"objectClass":"group","description":"IT Operations","distinguishedName":"CN=IT Ops,OU=Groups,DC=corp,DC=local","whenChanged":"2026-02-20T08:10:00Z","displayName":"IT Ops","name":"IT Ops","objectGUID":"AE1D8EA6-0D5F-49CB-94D1-F175D7E591D9","objectCategory":"CN=Group,CN=Schema,CN=Configuration,DC=corp,DC=local"},{"isSecondary":true,"objectClass":"user","distinguishedName":"CN=Jane Doe,OU=Managers,DC=corp,DC=local","displayName":"Jane Doe","name":"Jane Doe","objectGUID":"8C3F21E2-5D5C-4110-9D10-CC17925286EA"}]}},"No owners":{"summary":"Object has no owners set","value":{"items":[]}}}}}},"400":{"$ref":"#/components/responses/400BadRequest"},"401":{"$ref":"#/components/responses/401Unauthorized"},"404":{"$ref":"#/components/responses/404NotFound"},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"examples":{"Example 1":{"value":{"type":"https://tools.ietf.org/html/rfc7231#section-6.6","title":"Internal Server Error","status":500,"instance":"/ActiveRoles/1.0.1/objects/37BDC207-DA12-4E85-AD79-FBED47F9ECE8"}}}}}}}},"put":{"operationId":"setObjectOwners","tags":["objects"],"summary":"Set or replace all owners.","parameters":[{"name":"objectGuid","in":"path","required":true,"description":"GUID of an object","schema":{"type":"string"},"example":"0d894bed-6510-40a4-afb5-e3e2a1934ecc"}],"requestBody":{"description":"Array of new owners","required":true,"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Owner"}},"examples":{"Example 1":{"value":[{"isSecondary":true,"objectGuid":"AE1D8EA6-0D5F-49CB-94D1-F175D7E591D9"},{"isSecondary":false,"objectGuid":"DEC7C17F-7D3C-4C59-8FCD-1C14E3BB0032"}]}}}}},"responses":{"200":{"description":"New owners(s) set successfully"},"400":{"description":"If the request contains a client-side error, a `ProblemDetails` object is returned, providing a detailed description of the error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"examples":{"Example 1":{"value":{"errors":{},"type":"input.field.validation","title":"Input validation","status":400,"detail":"only one primary owner is allowed"}}}}}},"401":{"$ref":"#/components/responses/401Unauthorized"},"404":{"description":"Resource specified by the objectGuid does not exist or was not found."},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"examples":{"Example 1":{"value":{"type":"https://tools.ietf.org/html/rfc7231#section-6.6","title":"Internal Server Error","status":500,"instance":"/ActiveRoles/1.0.1/objects/37BDC207-DA12-4E85-AD79-FBED47F9ECE8"}}}}}}}},"delete":{"operationId":"deleteObjectOwners","tags":["objects"],"summary":"Clear all owners.","parameters":[{"name":"objectGuid","in":"path","required":true,"description":"GUID of an object","schema":{"type":"string"},"example":"0d894bed-6510-40a4-afb5-e3e2a1934ecc"}],"responses":{"200":{"description":"Delete successful"},"400":{"description":"If the request contains a client-side error, a `ProblemDetails` object is returned, providing a detailed description of the error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"examples":{"Example 1":{"value":{"errors":{"objectGuid":["The value 'XXXXX-5DC5-4110-9D10-CC17925286EA' is not valid."]},"type":"https://tools.ietf.org/html/rfc7231#section-6.5","title":"One or more validation errors occurred.","status":400,"instance":"/ActiveRoles/1.0.1/objects/XXXXX-5DC5-4110-9D10-CC17925286EA/owners"}}}}}},"401":{"$ref":"#/components/responses/401Unauthorized"},"404":{"description":"Resource specified by the objectGuid does not exist or was not found."},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"examples":{"Example 1":{"value":{"type":"https://tools.ietf.org/html/rfc7231#section-6.6","title":"Internal Server Error","status":500,"instance":"/ActiveRoles/1.0.1/objects/37BDC207-DA12-4E85-AD79-FBED47F9ECE8"}}}}}}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Active Roles uses OAuth 2.0 / OpenID Connect tokens issued by the Active Roles Security Token Service (RSTS). Obtain a token from your Active Roles server's RSTS endpoint (typically https://<ars-host>/RSTS/oauth2/token) and pass it in the Authorization header as: Authorization: Bearer <token>"}},"parameters":{"PageSizeParam":{"name":"pageSize","in":"query","description":"Specify number of content results per page.  Default 100.","schema":{"type":"integer","default":100}},"AttributesParam":{"name":"attributes","in":"query","required":false,"description":"Additional directory attributes to include in the response, in addition\nto the default `BaseAttributes`. Repeat the parameter once per attribute.\n\nExample: `?attributes=givenName&attributes=sn&attributes=mail`\n","schema":{"type":"array","items":{"type":"string"},"example":["givenName","sn","mail"]},"style":"form","explode":true},"FromQueryParam":{"name":"includeAttributes","in":"query","required":false,"description":"Setting `all` will return all the objects attributes","schema":{"type":"string","enum":["fromQuery","all"],"default":"fromQuery"}},"NextPageParam":{"name":"nextPage","in":"query","description":"Use to paginate a result set larger than the page size.","schema":{"type":"string"}}},"headers":{"Link":{"description":"API uses cursor pagination with query parameters for pageSize and sizeLimit to adjust behavior.  When request results in multiple page response, the Link header is used to communicate the URL for the next page to the caller.","schema":{"type":"string"},"example":"<https://hostname/containers/dc=com/dc=example/ou=employees&cursor=832b64fa>; rel=\"next\""}},"responses":{"400BadRequest":{"description":"When encountering a malformed request `ProblemDetails` are returned.","content":{"application/json":{"schema":{"type":"object","$ref":"#/components/schemas/ProblemDetails"},"examples":{}}}},"401Unauthorized":{"description":"Request was made without a valid authorization header. Obtain a new token from the RSTS endpoint on your Active Roles server."},"404NotFound":{"description":"Resource specified by the objectGuid does not exist or was not found.","content":{}},"409Conflict":{"description":"Conflict. Usually when attempting to move the object into a container with a child that has the same name.","content":{"application/json":{"schema":{"type":"object","required":["message"],"properties":{"message":{"type":"string","description":"Descriptive error message that might help developer determine what the conflict is. e.g. 'Object already exists with name: foobar.'"}}}}}},"500ServerError":{"description":"The server has encountered a situation it does not know how to handle.","content":{"application/json":{"schema":{"type":"object","$ref":"#/components/schemas/ProblemDetails"}}}},"ProblemDetails_":{"description":"A `ProblemDetails_` object is returned when a malformed request is encountered.","content":{"application/json":{"schema":{"type":"object","properties":{}}}}}},"schemas":{"AttributeValues":{"title":"AttributeValues","type":"object","required":["items"],"properties":{"items":{"type":"array","description":"The values of the requested attribute. For single-valued attributes the array contains exactly one element; for multi-valued attributes it contains all values. The element type depends on the attribute's directory schema syntax — see the per-element `oneOf` below. Mixed types within a single response are not produced, every element of a given response is of the same JSON type.","items":{"oneOf":[{"type":"string","description":"Used for: Unicode/IA5/Printable strings, Distinguished Names, Generalized Time (ISO 8601), GUID-typed octet strings (`D` form), all other octet strings (base64), `objectClass`, and `objectSid` (SDDL form)."},{"type":"integer","format":"int64","description":"Used for Integer (Int32) and Large Integer (Int64) attributes such as `userAccountControl`, `groupType`, `accountExpires`, `pwdLastSet`."},{"type":"boolean","description":"Used for Boolean attributes such as `msExchHideFromAddressLists`."}]}}},"description":"Container for the values of a single directory attribute containing all values in a single response and does not paginate."},"AttributeValuesModification":{"description":"Specifies values to add and/or remove from a multi-valued attribute. At least one of addValues or removeValues must be provided.","type":"object","minProperties":1,"properties":{"addValues":{"description":"Values to add to the attribute.","type":"array","items":{"oneOf":[{"type":"string","description":"String, DN, generalized-time, or base64-encoded binary value."},{"type":"integer","description":"Integer value (e.g., userAccountControl, groupType)."},{"type":"boolean","description":"Boolean value."}]}},"removeValues":{"description":"Values to remove from the attribute.","type":"array","items":{"oneOf":[{"type":"string","description":"String, DN, generalized-time, or base64-encoded binary value."},{"type":"integer","description":"Integer value (e.g., userAccountControl, groupType)."},{"type":"boolean","description":"Boolean value."}]}}}},"BaseAttributes":{"description":"Set of generic object read-only attributes that are assigned by Active Roles and/or underlying directory.","allOf":[{"$ref":"#/components/schemas/WritableBaseAttributes"},{"type":"object","required":["objectGUID","distinguishedName"],"properties":{"objectClass":{"type":"string","description":"The LDAP object class (the most specific structural class) of this object."},"objectGUID":{"type":"string","format":"uuid","description":"The unique identifier for this object."},"distinguishedName":{"type":"string","description":"LDAP distinguished name for this object"},"whenChanged":{"type":"string","format":"date-time","description":"The datetime when this object was last changed"},"objectCategory":{"type":"string","description":"The distinguished name (DN) of the object category schema class entry."}}}],"x-examples":{"Example 1":{"objectClass":"user","description":"European wild cat","distinguishedName":"CN=ArkilPetra,OU=NAM_LOC,OU=FunctionalTests,DC=roles1,DC=net","whenChanged":"11/21/2024 11:37:39 AM","displayName":"Petra Arkil","name":"ArkilPetra","objectGUID":"f4af70f4-3b3d-4e27-8439-63dabec04067","objectCategory":"CN=Person,CN=Schema,CN=Configuration,DC=roles1,DC=net"}}},"Container":{"description":"Active Roles container object.","allOf":[{"$ref":"#/components/schemas/BaseAttributes"},{"type":"object","properties":{"allowedChildClasses":{"description":"Object class (`objectClass`) names (for example, `user`, `group`, `organizationalUnit`) of objects that might be created directly under this container.","type":"array","items":{"x-stoplight":{"id":"5opb5dyud97d9"},"type":"string"}}}}]},"NewObject":{"title":"NewObject","type":"object","required":["parent","createOne"],"properties":{"parent":{"type":"string","format":"uuid","description":"The objectGuid of the container under which the new object will be created."},"createOne":{"type":"object","required":["objectCategory"],"properties":{"objectCategory":{"type":"string","description":"The object class to create. Determines which attributes are required and permitted. Examples: user, group, computer, organizationalUnit, edsAzureUser, edsAzureSecurityGroup, edsExoSharedMailbox, edsExoRoomMailbox, edsExoDistributionGroups."},"name":{"type":"string","description":"Common Name (CN) of the new object. Required for most object classes. Must be unique within the parent container."}},"additionalProperties":{"oneOf":[{"type":"string","description":"Single-valued string, DN, generalized-time, or base64-encoded binary attribute."},{"type":"integer","description":"Single-valued integer attribute (e.g., userAccountControl, groupType)."},{"type":"boolean","description":"Single-valued boolean attribute."},{"type":"array","description":"Multi-valued attribute. Each element follows the same type rules as single-valued attributes.","items":{"oneOf":[{"type":"string"},{"type":"integer"},{"type":"boolean"}]}}]},"description":"Attributes for the new object. The set of required and permitted attributes is determined by the objectCategory (object class). Attribute names follow the Active Directory or Active Roles extended schema. Consult the schema endpoints or Active Directory Schema documentation for class-specific requirements."}},"description":"Request body for creating a new directory object. Specify the parent container by objectGuid and provide the object's attributes in the createOne property. The objectCategory attribute determines the object class and consequently which other attributes are required.      "},"NewParent":{"type":"object","required":["objectGuid"],"properties":{"objectGuid":{"type":"string"}},"x-examples":{"Example 1":{"objectGuid":"F4ECB105-DDB5-4870-AC29-A395CCC13BA3"}},"title":"NewParent","description":"Defines the new parent object for a move operation"},"Object":{"description":"Represents a directory object returned by Active Roles API. Inherits common read-only attributes from BaseAttributes. All additional attributes are dynamic — the set depends on the object's objectClass and the attributes requested via the query parameter. Attribute values follow the Active Directory / Active Roles type system.","example":{"objectClass":"user","objectGUID":"e9b93d50-3345-465e-84d4-8fec82b7fe60","distinguishedName":"CN=guest,CN=Users,DC=example,DC=com","objectCategory":"CN=Person,CN=Schema,CN=Configuration,DC=example,DC=com","name":"CN=guest","displayName":"guest user","description":"Built-in account for guest access to the computer/domain","accountExpires":9223372036854776000,"thumbnailPhoto":"VGhpcyB3b3VsZCBiZSBtdWNoIG11Y2ggbXVjaCBsb25nZXIgaW4gcmVhbCBsaWZlIQ==","memberOf":["CN=Domain Guests,CN=Users,DC=O1D,DC=local","CN=Guests,CN=Builtin,DC=O1D,DC=local"]},"allOf":[{"$ref":"#/components/schemas/BaseAttributes"},{"type":"object","additionalProperties":{"oneOf":[{"type":"string","description":"Single-valued string, DN, generalized-time, or base64-encoded binary attribute."},{"type":"integer","description":"Single-valued integer attribute (e.g., userAccountControl, groupType, accountExpires)."},{"type":"boolean","description":"Single-valued boolean attribute."},{"type":"array","description":"Multi-valued attribute. Each element follows the same type rules as single-valued attributes.","items":{"oneOf":[{"type":"string"},{"type":"integer"},{"type":"boolean"}]}}]}}]},"Owner":{"type":"object","required":["objectGuid"],"properties":{"isSecondary":{"type":"boolean"},"objectGuid":{"type":"string"}},"x-examples":{"Example 1":{"isSecondary":false,"objectGuid":"DEC7C17F-7D3C-4C59-8FCD-1C14E3BB0032"}}},"OwnerReadDto":{"description":"Read-side representation of an owner of an ARS object, includes identity and display attributes resolved from the underlying directory object.","type":"object","required":["isSecondary","objectGUID"],"properties":{"isSecondary":{"type":"boolean","description":"False for the primary owner. True for every secondary owner (including Azure owners, which are always treated as secondary)."},"objectClass":{"type":"string","description":"LDAP object class of the owner (e.g. `user`, `group`). Omitted if the underlying object has no objectClass value."},"description":{"type":"string","description":"Value of the `description` attribute on the owner object. Omitted when the attribute is not set."},"distinguishedName":{"type":"string","description":"Full distinguished name (DN) of the owner object."},"whenChanged":{"type":"string","description":"Value of the `whenChanged` attribute serialised as a .NET DateTime string. Omitted when the attribute is not set."},"displayName":{"type":"string","description":"Value of the `displayName` attribute on the owner object. Omitted when the attribute is not set."},"name":{"type":"string","description":"Value of the `name` attribute on the owner object. Omitted when the attribute is not set."},"objectGUID":{"type":"string","description":"Object GUID of the owner, formatted as an uppercase 8-4-4-4-12 GUID string (e.g. `DEC7C17F-7D3C-4C59-8FCD-1C14E3BB0032`)."},"objectCategory":{"type":"string","description":"Value of the `objectCategory` attribute on the owner object. Omitted when the attribute is not set."}}},"Owners":{"description":"Envelope containing the full owners list in a single response. Does not paginate.","type":"object","required":["items"],"properties":{"items":{"type":"array","description":"The owners of the requested object. Empty array when the object has no owners.","items":{"$ref":"#/components/schemas/OwnerReadDto"}}}},"OwnersModification":{"description":"Specifies owners to add and/or remove from the object. At least one of addOwners or removeOwners must be provided.","type":"object","minProperties":1,"properties":{"addOwners":{"description":"Owners to add.","type":"array","items":{"$ref":"#/components/schemas/Owner"}},"removeOwners":{"description":"Owners to remove.","type":"array","items":{"$ref":"#/components/schemas/Owner"}}}},"PaginatedResponse":{"type":"object","required":["items"],"x-examples":{"Example 1":{"results":[{"objectClass":"user","description":"Black vulture","whenChanged":"2024-08-06T11:16:23Z","displayName":"Emerson Alleburton","objectGUID":"27cd3512-0dfa-4205-9622-a11a68a97743","objectCategory":"CN=Person,CN=Schema,CN=Configuration,DC=roles1,DC=net","distinguishedName":"CN=AlleburtonEmerson,OU=APAC_LOC,OU=FunctionalTests,DC=roles1,DC=net","name":"AlleburtonEmerson"},{"objectClass":"user","description":"Superb starling","whenChanged":"2024-08-06T11:01:59Z","displayName":"Jana Athey","objectGUID":"e308e6a6-831d-4c3a-936a-a7fcfb20753a","objectCategory":"CN=Person,CN=Schema,CN=Configuration,DC=roles1,DC=net","distinguishedName":"CN=AtheyJana,OU=APAC_LOC,OU=FunctionalTests,DC=roles1,DC=net","name":"AtheyJana"},{"objectClass":"user","description":"Bahama pintail","whenChanged":"2024-08-06T11:02:01Z","displayName":"Cobb Baseke","objectGUID":"df7a4e6f-0978-499f-8f2b-48f975b8d9cd","objectCategory":"CN=Person,CN=Schema,CN=Configuration,DC=roles1,DC=net","distinguishedName":"CN=BasekeCobb,OU=APAC_LOC,OU=FunctionalTests,DC=roles1,DC=net","name":"BasekeCobb"},{"objectClass":"user","description":"Wood pigeon","whenChanged":"2024-08-06T11:02:01Z","displayName":"Jabez Beardsdale","objectGUID":"61cf82ae-9205-41cf-bbab-205900310f71","objectCategory":"CN=Person,CN=Schema,CN=Configuration,DC=roles1,DC=net","distinguishedName":"CN=BeardsdaleJabez,OU=APAC_LOC,OU=FunctionalTests,DC=roles1,DC=net","name":"BeardsdaleJabez"},{"objectClass":"user","description":"Skunk, striped","whenChanged":"2024-08-06T11:02:15Z","displayName":"Bette Beed","objectGUID":"16fabef1-418e-4cab-a2c5-0624c5f14513","objectCategory":"CN=Person,CN=Schema,CN=Configuration,DC=roles1,DC=net","distinguishedName":"CN=BeedBette,OU=APAC_LOC,OU=FunctionalTests,DC=roles1,DC=net","name":"BeedBette"}],"nextPage":"eyJQYWdpbmF0b3JJZCI6IjVlNDM2YjliLTE5YmItNDM2Mi05OGE4LTI1YzJhNjU4MzQyOSIsIk5leHRJdGVtSW5kZXgiOjV9"}},"title":"PaginatedResponse","description":"Contains the current page of the result set with an optional nextPage token which is used to construct the Url to get the next page.","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Object"}},"nextPage":{"type":"string"}}},"ProblemDetails":{"type":"object","required":["status","title"],"properties":{"type":{"type":"string"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"}},"x-examples":{},"title":"ProblemDetails","description":"Error response containing detailed information about the error"},"WritableBaseAttributes":{"description":"Set of generic object attributes that can be modified.","type":"object","properties":{"name":{"type":"string","description":"The relative distinguished name for this object"},"displayName":{"type":"string","description":"A display-ready, human readable name for this object"},"description":{"description":"Short discription for this object","type":"string"}},"x-examples":{"Example 1":{"name":"string","displayName":"string","description":"string"}}}}}}