Overview
This article demonstrates how to change an OKTA SAML User's username in the Sonatype Lifecycle.
1.) Before making changes, ensure that you have successfully configured Okta SAML integration with the Sonatype Lifecycle by following: Okta SAML integration with the Sonatype Platform
2.) If you need to change multiple users, test the process with a single user first. Additionally, please make a list of the original usernames, as they will be needed later.
Steps
1. Update OKTA configuration
Please refer to Repository-How-to-Change-an-OKTA-SAML-User-s-Username-in-the-Sonatype-Nexus-Repository#1.UpdateOKTAconfiguration
2. Delete the Original SAML Users in the Sonatype Lifecycle
After updating usernames in Okta, users will see their new usernames upon logging into the Sonatype Lifecycle.
However, the original SAML user's metadata information, like username, first name, last name, email, and group mapping, is still stored in the database. You need to delete the original SAML user by delete-users
An example:
curl -u admin:admin123 -X DELETE 'http://localhost:8070/api/v2/users/beforechange@example.com?realm=SAML'