feat: Support Microsoft Oauth Group Names #5078

Closed
opened 2025-11-11 16:11:33 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @erictmnz on GitHub (May 7, 2025).

Check Existing Issues

  • I have searched the existing issues and discussions.

Problem Description

Currently we are able to import the Microsoft user's security groups.
However, in Open WebUI it only shows the id of the group.
This is a Microsoft limitation (ie the token doesn't supply the name).

Image

Desired Solution you'd like

It would be great if the "name" of the groups in Open WebUI would be separate from the "id".
This would allow us to manually rename the groups once they are imported without this creating additional groups when the user logs in again.

It's a bit of a workaround but it would allow Microsoft Oauth identity users to make use of the groups feature and use the share with group etc.

Alternatives Considered

No response

Additional Context

No response

Originally created by @erictmnz on GitHub (May 7, 2025). ### Check Existing Issues - [x] I have searched the existing issues and discussions. ### Problem Description Currently we are able to import the Microsoft user's security groups. However, in Open WebUI it only shows the id of the group. This is a Microsoft limitation (ie the token doesn't supply the name). ![Image](https://github.com/user-attachments/assets/d3ba155a-9311-4eae-9ac6-107bcff4cb70) ### Desired Solution you'd like It would be great if the "name" of the groups in Open WebUI would be separate from the "id". This would allow us to manually rename the groups once they are imported without this creating additional groups when the user logs in again. It's a bit of a workaround but it would allow Microsoft Oauth identity users to make use of the groups feature and use the share with group etc. ### Alternatives Considered _No response_ ### Additional Context _No response_
Author
Owner

@Dudedrakes commented on GitHub (May 7, 2025):

Entra can return the group names, but it has to be manually configured in the App Registration manifest.

First, in the token configuration, make sure groups are added as an option claim.

Then go to the manifest and in the additionalProperties section of the optional claims add "cloud_displayname" for each of the groups claims as shown in this image below. The token will then have could names instead of ID's

Image

@Dudedrakes commented on GitHub (May 7, 2025): Entra can return the group names, but it has to be manually configured in the App Registration manifest. First, in the token configuration, make sure groups are added as an option claim. Then go to the manifest and in the additionalProperties section of the optional claims add "cloud_displayname" for each of the groups claims as shown in this image below. The token will then have could names instead of ID's ![Image](https://github.com/user-attachments/assets/c274b15e-9a8c-4395-99b6-f166643f66fd)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#5078