The auth0_organization data source retrieves a list of connections, members, and client grants for a given organization. However, the client grants and organization association feature is only available to limited users. As a result, an empty slice of client grants is returned for tenants that do not have access to this feature.
đ§ Changes
Implemented graceful handling for tenants that do not have access to the client grants feature.
When the auth0_organization data source is queried by such tenants, an empty slice is returned for the client grants, ensuring that the data source works without errors for all users, even those without this feature.
đ References
N/A
đŹ Testing
Added a negative test case that runs against a tenant with insufficient scopes or access to the client grants feature.
Verified that the data source returns an empty slice for client grants without causing errors, ensuring smooth operation for tenants without this feature.
đ Checklist
[x] All new/changed/fixed functionality is covered by tests.
[x] I have added documentation for all new/changed functionality (if applicable).
The
auth0_organization
data source retrieves a list of connections, members, and client grants for a given organization. However, the client grants and organization association feature is only available to limited users. As a result, an empty slice of client grants is returned for tenants that do not have access to this feature.đ§ Changes
auth0_organization
data source is queried by such tenants, an empty slice is returned for the client grants, ensuring that the data source works without errors for all users, even those without this feature.đ References
N/A
đŹ Testing
đ Checklist