simpleidserver / SimpleIdServer

OpenID, OAuth 2.0, SCIM2.0, UMA2.0, FAPI, CIBA & OPENBANKING Framework for ASP.NET Core
https://simpleidserver.com/
Apache License 2.0
735 stars 99 forks source link

How to update User Claims Programmatically #820

Closed BrunoFelipe-dev closed 1 day ago

BrunoFelipe-dev commented 1 day ago

Hello, I have a question.

How do I update user claims programmatically?

I thought it should be done using the SCIM server, but from what I've seen I can only do this for users created on the SCIM server. When a user registers using the normal flow, such as PWD, for example, I can't update claims from SCIM, such as the profile picture, for example, for this user on the SCIM server. Only through the Manager interface can I do this. I'm a bit lost.

simpleidserver commented 1 day ago

Hello,

When a user is created in an external resource such as a SCIM server or an LDAP server, the user will not automatically exist in the Identity Server. To address this, an automatic provisioning workflow must be configured to establish a two-way communication relationship between the Identity Server and the SCIM server.

Once such a workflow is configured, the following scenarios are supported:

For more information about automatic provisioning, please refer to this documentation: Automatic Identity Provisioning.

Additionally, user claims can be programmatically updated by executing an HTTP request. To try this, you can import the attached Postman project and execute the HTTP request under the Manage one user folder.

SimpleIdServerManagement.postman_collection.json

KR, SID

BrunoFelipe-dev commented 1 day ago

Understood, thank you very much!