Skip to content

Adjust behavior users that mis-matched ExternalId - #361

Open
ChrisPates wants to merge 1 commit into
masterfrom
358-where-a-user-externalid-does-not-match-the-user-in-google-workspaces-improve-the-behavior
Open

Adjust behavior users that mis-matched ExternalId#361
ChrisPates wants to merge 1 commit into
masterfrom
358-where-a-user-externalid-does-not-match-the-user-in-google-workspaces-improve-the-behavior

Conversation

@ChrisPates

Copy link
Copy Markdown
Contributor

If an ExternalId mismatches, check for an email address match, if a match is found and the ExternalId is not set/set to nul, then update with the relevant ExternalId. This allows for matching existing locally created users, on first sync via ssosync. This is an important adoption route.

Issue #, if available:
#358

Description of changes:
Where a user in Google Workspace Directory (gUser) fails to match with a user in IAM Identity Store (awsUser) based on gUser.Id = awsUser.ExternalId, but matches on gUser.PrimaryEmail. Then the following logic is applied.

  • If the awsUser.ExternalId is null or unset, then the user is updated with gUser.Id as its ExternalId and any other fields are synchronized.
  • If the awsUser.ExternalId is set up doesn't match, then the existing awsUser is deleted (breaking anyt permission assignments), and a new awsUser is created.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

if an ExternalId mismatches, check for an email address match, if a match is found and the ExternalId is not set/set to nul, then update with the relevant ExternalId. This allows for matching existing locally created users, on first sync via ssosync. This is an important adoption route.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Where a user externalId does not match the user in Google Workspaces, improve the behavior

1 participant