Tag not monitored by Microsoft.
The ATLAS-403 error when creating a custom entity indicates that the caller doesn’t have sufficient data-plane permissions in Microsoft Purview to perform the create entity operation for that type in the specified collection.
From the documented requirements:
- Data-plane role is required for entity create
For creating assets and lineage via the REST APIs, the caller must have Data Curator and Data Reader roles on the relevant collection in the Data Map. The lineage tutorial explicitly states that these APIs (includingCreate Entity) require these roles:“The use of these APIs requires Data Curator and Data Reader roles.”
- Service principal / user must be correctly assigned in the new Purview portal
In the new Microsoft Purview portal, the service principal must be:- Added to a group in Entra ID.
- That group must be added to the Data Curator role group for Purview so it can add entities.
- Add the service principal to a group.
- Add that group to the data curator role group in Purview using the permissions page.
- Collection scoping matters
When using collection-scoped permissions, all API operations are constrained to the collections where the principal has roles. If the principal only has permissions on a different collection (or a parent/child mismatch), create calls for a collection outside that scope will fail with authorization errors. - Propagation delay
The documentation notes that for newly created users or updated permissions in Entra ID, it can take some time for permissions to propagate even after correct permissions are applied. During this window, authorization failures can occur despite apparently correct configuration. - Checklist based on documentation
Based on the above, the following must all be true for the create to succeed:
- The caller is using a valid bearer token for the correct tenant and Purview account (already confirmed in the question).
- The principal is in a group that is a member of the Data Curator role group in the new Purview portal.
- The principal also has Data Reader role where required for the APIs being used.
- The role assignment is scoped to the collection identified by
collectionId(here,sdh16d), or to a parent collection that grants access to that collection. - Enough time has passed for role and permission changes to propagate.
If any of these conditions are not met (for example, missing Data Reader role, role group not correctly configured in the new portal, or collection scope mismatch), the result will be an ATLAS-403 authorization error when calling the entity create API for the custom type.
References:
- Create assets using the REST API
- Type definitions and how to create custom types
- Create and get lineage relationships using the REST API
- Data governance roles and permissions in Microsoft Purview
- Frequently asked questions (FAQ) about Microsoft Purview data governance solutions
- Microsoft Purview Resource Provider Rest API