legacy-knowledge-base
Publicado Jun. 25, 2030

SCIM API is not working as expected to link existing users to SCIM Client

written-by

Dia Seung

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

Issue

  • I'm unable to use the PUT API to update users as linked to the SCIM Client.
  • I'm not able to add new users and then update them using the PUT API linking them to the SCIM client.

Environment

  • 2024.Q1+

Resolution

Important

This feature is currently behind a beta feature flag.

  • To add new users as a SCIM user, you can use the POST API or the User_PUT_ById.sh script in SCIM User API Basics. This adds a new User (linking to a SCIM client) and auto-generates the custom Scimclientid field.
  • The PUT endpoint actually is not expected to link an existing user to the SCIM Client, it should just return a 404 error with “User is not a SCIM user.” as per LPD-9395 which created the endpoint. Unlike the POST endpoint, which can link an existing user to a SCIM Client if they aren’t, PUT won’t work like this. The same should apply to User Groups.

Additional Information

did-this-article-resolve-your-issue

legacy-knowledge-base