FusionAuth / fusionauth-issues

FusionAuth issue submission project
https://fusionauth.io
90 stars 12 forks source link

SCIM API • Extend User schema to include group memberships #2631

Open marianooriosplit opened 8 months ago

marianooriosplit commented 8 months ago

SCIM API • Extend User schema to include group memberships

Problem

We need to provide the groups that a user belongs to as part of the GET /api/scim/resource/v2/Users and GET /api/scim/resource/v2/Users/{userId} User SCIM APIs.

In SCIM user’s Resource Schema • Multi value attributes specifies that the attribute groups can be included as the list of groups that the user belongs to.

Additional context

The group attribute should include the next sub-attributes:

Split's customers are being blocked by requiring this information on the APIs.

arietimmerman commented 8 months ago

I agree that this feature would be a useful. I think best practice is to return the groups attribute only if it is explicitly requested by specifying the attributes parameter. Like /Users?attributes=groups as shown here https://scim.dev/playground/users.html#list-users-including-groups