Skip to content

feat: add rate limit policies, group/org role management, and user effective roles/permissions#1348

Merged
amitsingh05667 merged 1 commit into
masterfrom
fern-bot/2026-05-27T01-32-56Z
May 28, 2026
Merged

feat: add rate limit policies, group/org role management, and user effective roles/permissions#1348
amitsingh05667 merged 1 commit into
masterfrom
fern-bot/2026-05-27T01-32-56Z

Conversation

@fern-api
Copy link
Copy Markdown
Contributor

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

Changes

New Endpoints & Resources

  • Rate Limit Policies (client.rateLimitPolicies.*) - full CRUD: list, create, get, update, delete
  • Group Roles (client.groups.roles.*) - list, create, delete roles assigned to a group
  • Roles Groups (client.roles.groups.*) - list and manage groups associated with a role
  • Organization Groups (client.organizations.groups.*) - list groups within an organization
  • Organization Group Roles (client.organizations.groups.roles.*) - list, create, delete roles for an org group
  • Organization Member Effective Roles (client.organizations.members.effectiveRoles.*) - list effective roles for an org member, including group-sourced roles via client.organizations.members.effectiveRoles.sources.groups.*
  • User Effective Permissions (client.users.effectivePermissions.*) - list effective permissions for a user, with role-source drill-down via client.users.effectivePermissions.sources.roles.*
  • User Effective Roles (client.users.effectiveRoles.*) - list effective roles for a user, with group-source drill-down via client.users.effectiveRoles.sources.groups.*

New Fields

  • FedCM Login (fedcm_login) - new field on client create/update to configure the Google FedCM prompt on New Universal Login

Usage: Rate Limit Policies

// List rate limit policies (paginated)
const page = await client.rateLimitPolicies.list({ page: 0, per_page: 20 });

// Create a new policy
await client.rateLimitPolicies.create({ /* policy params */ });

// Get, update, delete by ID
await client.rateLimitPolicies.get("id");
await client.rateLimitPolicies.update("id", { /* updated params */ });
await client.rateLimitPolicies.delete("id");

Usage: User Effective Roles & Permissions

// List effective roles for a user
const roles = await client.users.effectiveRoles.list("user_id", { page: 0 });

// Drill down into group-sourced roles
const groups = await client.users.effectiveRoles.sources.groups.list("user_id", { page: 0 });

// List effective permissions
const perms = await client.users.effectivePermissions.list("user_id", { page: 0 });

// Drill into role sources of those permissions
const roleSources = await client.users.effectivePermissions.sources.roles.list("user_id", { page: 0 });

Usage: Organization Groups

// List groups in an organization
const groups = await client.organizations.groups.list("org_id", { page: 0 });

// Manage roles assigned to an org group
await client.organizations.groups.roles.list("org_id", "group_id");
await client.organizations.groups.roles.create("org_id", "group_id", { roles: ["role_id"] });
await client.organizations.groups.roles.delete("org_id", "group_id", { roles: ["role_id"] });

@fern-api fern-api Bot requested a review from a team as a code owner May 27, 2026 01:33
@codecov
Copy link
Copy Markdown

codecov Bot commented May 27, 2026

Codecov Report

❌ Patch coverage is 90.23904% with 98 lines in your changes missing coverage. Please review.
✅ Project coverage is 89.57%. Comparing base (7073592) to head (bff0899).

Files with missing lines Patch % Lines
...t/api/resources/rateLimitPolicies/client/Client.ts 88.95% 20 Missing ⚠️
.../resources/groups/resources/roles/client/Client.ts 89.65% 12 Missing ⚠️
.../resources/groups/resources/roles/client/Client.ts 89.65% 12 Missing ⚠️
.../resources/roles/resources/groups/client/Client.ts 89.65% 12 Missing ⚠️
src/management/BaseClient.ts 18.18% 9 Missing ⚠️
src/management/core/auth/AuthProvider.ts 16.66% 5 Missing ⚠️
...es/organizations/resources/groups/client/Client.ts 92.72% 4 Missing ⚠️
.../members/resources/effectiveRoles/client/Client.ts 92.72% 4 Missing ⚠️
...esources/sources/resources/groups/client/Client.ts 91.83% 4 Missing ⚠️
...rs/resources/effectivePermissions/client/Client.ts 92.59% 4 Missing ⚠️
... and 3 more
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1348      +/-   ##
==========================================
+ Coverage   89.53%   89.57%   +0.03%     
==========================================
  Files         390      426      +36     
  Lines       18714    19717    +1003     
  Branches     8848     9318     +470     
==========================================
+ Hits        16756    17661     +905     
- Misses       1958     2056      +98     
Flag Coverage Δ
alltests 89.57% <90.23%> (+0.03%) ⬆️

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

Files with missing lines Coverage Δ
src/management/Client.ts 97.22% <100.00%> (+0.05%) ⬆️
.../management/api/resources/actions/client/Client.ts 88.80% <ø> (ø)
...rces/branding/resources/templates/client/Client.ts 88.99% <ø> (ø)
.../management/api/resources/clients/client/Client.ts 88.70% <ø> (ø)
...agement/api/resources/connections/client/Client.ts 89.02% <ø> (ø)
...ces/connections/resources/clients/client/Client.ts 90.80% <ø> (ø)
...tions/resources/scimConfiguration/client/Client.ts 87.30% <ø> (ø)
...cimConfiguration/resources/tokens/client/Client.ts 86.59% <ø> (ø)
...ement/api/resources/customDomains/client/Client.ts 87.58% <ø> (ø)
...t/api/resources/deviceCredentials/client/Client.ts 90.16% <ø> (ø)
... and 73 more
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@amitsingh05667 amitsingh05667 changed the title 🌿 Fern Regeneration -- May 27, 2026 feat: add rate limit policies, group/org role management, and user effective roles/permissions May 28, 2026
amitsingh05667
amitsingh05667 previously approved these changes May 28, 2026
Piyush-85
Piyush-85 previously approved these changes May 28, 2026
duedares-rvj
duedares-rvj previously approved these changes May 28, 2026
Signed-off-by: Amit Singh <amitk.singh@okta.com>
@amitsingh05667 amitsingh05667 dismissed stale reviews from duedares-rvj, Piyush-85, and themself via bff0899 May 28, 2026 08:28
@amitsingh05667 amitsingh05667 force-pushed the fern-bot/2026-05-27T01-32-56Z branch from 3990d1d to bff0899 Compare May 28, 2026 08:28
Copy link
Copy Markdown
Contributor

@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

@amitsingh05667 amitsingh05667 merged commit 9d73f51 into master May 28, 2026
10 checks passed
@amitsingh05667 amitsingh05667 deleted the fern-bot/2026-05-27T01-32-56Z branch May 28, 2026 08:34
@amitsingh05667 amitsingh05667 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.

5 participants