[patch] Fix initial user creation for 9.1 onwards#377
Merged
Conversation
split into separate code paths for pre/post MAS 9.1 for clarity. removed unnecessary calls to Core API workspace APIs when running against MAS 9.1 https://jsw.ibm.com/browse/MASCORE-14554
maxadmin does not have apikeyadmin rights so cannot grant it to primary users, mxintadm does.
mnivedithaa
approved these changes
Jun 8, 2026
whitfiea
approved these changes
Jun 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes
This PR fixes two different failures seen in Initial users creating against MAS >= 9.1:
An unexpected exception occurred while getting user workspaces for user {userid}Caused by unnecessary call to
/v3/users/{userid}/workspacesCore API - all user creation operations should be performed via calls to the new Manage APIs.Fixed by removing this unnecessary call when running against MAS >= 9.1
BMXAA10322E - Only API Administrator can create API Administrators.The job was using
MAXADMINto create a user withapikeyadminpermission set, butMAXADMINitself does not haveapikeyadmin.Fixed by updating the code to use the
MXINTADMuser instead.Other Changes
Testing
Unit tests updated
Tested against
9.1.11and9.2.0-pre.stable-2897:Input:
9.1.11Logs9.2.0-pre.stable-2897Logs