Skip to content

Commit ade235c

Browse files
Charlie-Boyerhuggingface-doc-bot
andauthored
Update SSO role mapping doc: most privileged role wins on multi-match (#2495)
When an IdP attribute matches several role mappings (e.g. user belongs to multiple groups), the assigned role is now the highest-privileged match rather than the first match encountered. Co-authored-by: huggingface-doc-bot <doc-bot@huggingface.co>
1 parent 332cfab commit ade235c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/hub/security-sso-user-management.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ This section allows you to define a mapping from your IdP's user profile data to
3939
> [!WARNING]
4040
> You must map at least one `admin` role in your configuration.
4141
42-
If the attribute in the IdP response contains multiple values (e.g. a list of groups), the **first matching mapping** will be used to determine the user's role.
42+
If the attribute in the IdP response contains multiple values (e.g. a list of groups) that match several mappings, the user is assigned the **most privileged matching role**. The role hierarchy, from least to most privileged, is `read` < `contributor` < `write` < `admin`.
4343

4444
If there is no match, the role is determined as follows:
4545

0 commit comments

Comments
 (0)