Skip to content

mgmt: Add organization groups, effective roles, and effective permissions APIs#1022

Merged
kailash-b merged 2 commits into
masterfrom
fern-bot/2026-05-28T05-38-20Z
May 28, 2026
Merged

mgmt: Add organization groups, effective roles, and effective permissions APIs#1022
kailash-b merged 2 commits into
masterfrom
fern-bot/2026-05-28T05-38-20Z

Conversation

@fern-api
Copy link
Copy Markdown
Contributor

@fern-api fern-api Bot commented May 28, 2026

Changes

This PR regenerates the SDK to match the latest Auth0 Management API definition. The changes include:

New Endpoints & Clients:

  • Organizations Groups (Organizations.Groups)

    • ListAsync() - List groups in an organization
    • Organizations.Groups.Roles.ListAsync() - List roles assigned to an organization group
    • Organizations.Groups.Roles.CreateAsync() - Assign roles to an organization group
    • Organizations.Groups.Roles.DeleteAsync() - Remove roles from an organization group
  • Organization Member Effective Roles (Organizations.Members.EffectiveRoles)

    • ListAsync() - List effective roles for an organization member
    • Sources.Groups.ListAsync() - List group sources for a member's effective role
  • User Effective Permissions (Users.EffectivePermissions)

    • ListAsync() - List effective permissions for a user
    • Sources.Roles.ListAsync() - List role sources for a user's effective permission
  • User Effective Roles (Users.EffectiveRoles)

    • ListAsync() - List effective roles for a user
    • Sources.Groups.ListAsync() - List group sources for a user's effective role
  • Roles Groups (Roles.Groups)

    • ListAsync() - List groups associated with a role
    • AssignAsync() - Assign groups to a role
    • RemoveAsync() - Remove groups from a role

New Types:

  • TenantSettingsCountryCodes / TenantSettingsCountryCodesResponse - Phone country code configuration for identifier input
  • TenantSettingsCountryCodesMode / TenantSettingsCountryCodesModeResponse - Mode enum for country codes
  • OrganizationMemberEffectiveRole / OrganizationMemberEffectiveRoleSource
  • UserEffectiveRole / UserEffectiveRoleSource
  • UserEffectivePermissionResponseContent / UserEffectivePermissionSourceEnum
  • UserEffectivePermissionRoleSourceResponseContent / UserEffectivePermissionRoleSourceEnum
  • Paginated response types for all new list endpoints

Classes/Interfaces Changed (new properties added):

  • IOrganizationsClient - added Groups property
  • IMembersClient - added EffectiveRoles property
  • IUsersClient - added EffectivePermissions and EffectiveRoles properties
  • IRolesClient - added Groups property
  • UpdateTenantSettingsRequestContent - added CountryCodes property
  • GetTenantSettingsResponseContent / UpdateTenantSettingsResponseContent - added CountryCodes property

New OAuth Scopes:

  • create:organization_group_roles, read:organization_group_roles, delete:organization_group_roles
  • read:organization_groups
  • read:organization_member_effective_roles, read:organization_member_role_source_groups
  • read:user_effective_permissions, read:user_effective_roles
  • read:user_permission_source_roles, read:user_role_source_groups

Documentation reformatting (non-functional):

XML doc comments across all existing clients were converted from XML-style formatting (<see href>, <c>, <list>, <b>) to markdown-style formatting (links, backticks, bullet lists,
bold).

References

  • Uses fern C# generator version 2.66.5.

Testing

  • This change adds unit test coverage

  • This change adds integration test coverage

  • This change has been tested on the latest version of the platform/language or why not

Checklist

@fern-api fern-api Bot requested a review from a team as a code owner May 28, 2026 05:38
@codecov
Copy link
Copy Markdown

codecov Bot commented May 28, 2026

Codecov Report

❌ Patch coverage is 61.13636% with 684 lines in your changes missing coverage. Please review.
✅ Project coverage is 31.94%. Comparing base (29c418e) to head (65ab62e).

Files with missing lines Patch % Lines
...ementApi/Organizations/Groups/Roles/RolesClient.cs 65.43% 66 Missing and 9 partials ⚠️
...c/Auth0.ManagementApi/Roles/Groups/GroupsClient.cs 63.94% 66 Missing and 9 partials ⚠️
...agementApi/Types/TenantSettingsCountryCodesMode.cs 0.00% 41 Missing ⚠️
...EffectivePermissions/EffectivePermissionsClient.cs 72.03% 28 Missing and 5 partials ⚠️
.../EffectivePermissions/Sources/Roles/RolesClient.cs 71.79% 28 Missing and 5 partials ⚠️
...ManagementApi/Organizations/Groups/GroupsClient.cs 72.17% 27 Missing and 5 partials ⚠️
...ons/Members/EffectiveRoles/EffectiveRolesClient.cs 73.33% 27 Missing and 5 partials ⚠️
...bers/EffectiveRoles/Sources/Groups/GroupsClient.cs 72.41% 27 Missing and 5 partials ⚠️
...ntApi/Users/EffectiveRoles/EffectiveRolesClient.cs 72.17% 27 Missing and 5 partials ⚠️
...sers/EffectiveRoles/Sources/Groups/GroupsClient.cs 71.92% 27 Missing and 5 partials ⚠️
... and 34 more
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1022      +/-   ##
==========================================
+ Coverage   31.47%   31.94%   +0.47%     
==========================================
  Files        2742     2788      +46     
  Lines      109195   110955    +1760     
  Branches     6419     6506      +87     
==========================================
+ Hits        34373    35449    +1076     
- Misses      73014    73640     +626     
- Partials     1808     1866      +58     
Flag Coverage Δ
authIntTests 2.96% <3.69%> (+0.01%) ⬆️
mgmtIntTests 30.71% <61.13%> (+0.49%) ⬆️
unittests 0.30% <0.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@kailash-b kailash-b force-pushed the fern-bot/2026-05-28T05-38-20Z branch from 964d328 to 65ab62e Compare May 28, 2026 05:50
@kailash-b kailash-b enabled auto-merge (squash) May 28, 2026 05:57
Copy link
Copy Markdown

@developerkunal developerkunal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kailash-b kailash-b merged commit 32d03a0 into master May 28, 2026
10 checks passed
@kailash-b kailash-b deleted the fern-bot/2026-05-28T05-38-20Z branch May 28, 2026 06:22
@kailash-b kailash-b changed the title 🌿 Fern Regeneration -- May 28, 2026 mgmt: Add organization groups, effective roles, and effective permissions APIs May 28, 2026
@kailash-b kailash-b mentioned this pull request May 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants