Skip to content

add Change member role via API and OpenAPI links#2250

Merged
Muhammadsaeed707 merged 9 commits intohuggingface:mainfrom
Muhammadsaeed707:update-user-roles/groups
Mar 3, 2026
Merged

add Change member role via API and OpenAPI links#2250
Muhammadsaeed707 merged 9 commits intohuggingface:mainfrom
Muhammadsaeed707:update-user-roles/groups

Conversation

@Muhammadsaeed707
Copy link
Copy Markdown
Contributor

  • Add Change member role via API section to organizations-security.md (PUT .../members/{username}/role for org and resource group roles)
  • Document one member per request; include loop examples for multiple members
  • Add OpenAPI reference links for change-member-role and resource-groups APIs

- Add Change member role via API section to organizations-security.md
  (PUT .../members/{username}/role for org and resource group roles)
- Document one member per request; include loop examples for multiple members
- Add OpenAPI reference links for change-member-role and resource-groups APIs

Made-with: Cursor
@HuggingFaceDocBuilderDev
Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@Muhammadsaeed707 Muhammadsaeed707 marked this pull request as ready for review February 26, 2026 03:50
Copy link
Copy Markdown
Member

@julien-c julien-c left a comment

Choose a reason for hiding this comment

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

for me this content is too long/too detailed to be in those pages. I would move all of this to a new "Programmatic user access control management" detailed guide/tutorial (linked from those pages)

…ressing comments)

- Add programmatic-user-access-control.md with full Change member role API
  and Resource Groups API (list, add users, email workaround, batch examples)
- Shorten organizations-security and security-resource-groups to brief intros
  with links to the new guide
- Add guide to Security section in _toctree.yml

Made-with: Cursor
@Muhammadsaeed707 Muhammadsaeed707 requested a review from Pierrci March 3, 2026 19:10
Copy link
Copy Markdown
Member

@Pierrci Pierrci left a comment

Choose a reason for hiding this comment

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

lgtm 👍

@Muhammadsaeed707 Muhammadsaeed707 merged commit 337d4e4 into huggingface:main Mar 3, 2026
1 check passed
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.

4 participants