Use Identity Store UserStatus field for SSO user status#102
Draft
c1-dev-bot[bot] wants to merge 1 commit intomainfrom
Draft
Use Identity Store UserStatus field for SSO user status#102c1-dev-bot[bot] wants to merge 1 commit intomainfrom
c1-dev-bot[bot] wants to merge 1 commit intomainfrom
Conversation
Check the UserStatus field from the AWS Identity Store API before falling back to the SCIM API. This fixes status visibility for Identity Centre Directory users where SCIM is unavailable, and reduces per-user SCIM API calls when the status is already available from the Identity Store API. The UserStatus field was added to the Identity Store API on Nov 6, 2025. This change upgrades the identitystore SDK from v1.25.4 to v1.36.1 to access the new field. Resolves: EPD-1531
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.
Summary
UserStatusfield from the AWS Identity Store API before falling back to SCIM for user statusidentitystoreSDK from v1.25.4 to v1.36.1 to access the newUserStatusfield (added Nov 6, 2025)Changes
pkg/connector/sso_user.go: Modified the user listing loop to checkuser.UserStatusfrom the Identity Store API first via a switch statement. Only falls back to the SCIMgetUserStatus()call when the Identity Store API doesn't provide a status (empty/unknown value).go.mod/vendor/: Upgradedgithub.com/aws/aws-sdk-go-v2/service/identitystorefrom v1.25.4 to v1.36.1 to get access toUserStatusfield andUserStatusEnabled/UserStatusDisabledconstants on thetypes.Userstruct.Automated PR Notice
This PR was automatically created by c1-dev-bot as a potential implementation.
This code requires:
Test plan
go build ./...)go test ./...)UserStatus: ENABLEDUserStatus: DISABLEDUserStatusis empty (should fall back to SCIM)UserStatusempty (should returnSTATUS_UNSPECIFIED)Resolves EPD-1531