Bootstrap and account ownership
Deployment-level provisioners must be service accounts, not human users:-
A human recovery administrator creates or selects a trusted IT automation
organization, then creates a service account with the explicit
adminorganization role inside it. Resource permission is configured separately. -
Add that Docent service-account UUID to the deployment’s Terraform
configuration:
This is not the creator’s user ID, an API key, or an Entra application ID. Listing a human-user ID does not grant provisioner authority.
- Apply Terraform and deploy the updated API task definitions. Automation can then authenticate using the service account’s own API key, AWS federated identity, or Microsoft Entra workload identity, without a human login.
Create and update an organization
Creating an organization requires a human identity or a configured provisioner; an ordinary organization-admin service account cannot create organizations.Manage members
create_manual_grant=True only when you intentionally want a
direct grant to remain after the person leaves that group.
Read and download audit events
List recent events with cursor pagination:before must be a timezone-aware datetime. To download every event in a
half-open time range—start_at is included and end_at is excluded—use:
output_path after it succeeds.
Map a Microsoft Entra group
In an Entra-enabled deployment, Docent searches Microsoft Graph using the read-onlyGroupMember.Read.All and User.ReadBasic.All application
permissions approved by the tenant administrator. Mapping by name is
convenient, while Docent stores the immutable group object ID:
ValueError without changing the mapping. Call
search_entra_groups and then set_entra_group_mapping when you need to select
an object ID explicitly.
To replace a deleted or renamed group, call either setter again. Replacing the
object ID immediately removes access derived from the old mapping and records
the transition in the audit log. Members of the replacement group receive
access on their next Microsoft sign-in or when an administrator runs a
reconciliation. Direct Docent grants remain intact.
unlinked and receive access after their first Microsoft
sign-in. A manual Docent grant is independent and is never removed merely
because the user left the Entra group.
When the tenant has organization group mappings, Docent retrieves the user’s
complete transitive security-group IDs from Graph during Microsoft sign-in. If
Graph cannot provide the complete list, the sign-in is rejected and existing
group access is not incorrectly retained. Tenants without group mappings do not
depend on this Graph lookup for sign-in.
Create a service account
permission caps access to collections and other resources. The independent
organization_role controls organization administration and defaults to
member. Set organization_role="admin" only when the automation must manage
members, identity mappings, service accounts, or audit configuration.
Change the organization role later without changing resource access:

