Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds support for nested groups #95

Closed
wants to merge 1 commit into from
Closed

Adds support for nested groups #95

wants to merge 1 commit into from

Conversation

terricain
Copy link

Issues

Sorry didn't raise a specific issue but some exist:
Fixes #66
Fixes #51
Fixes #27

Description

  • Adds both GetUser and GetGroup
  • Adds getAllGroupMembers - This resolves all users from a nested group hierarchy (if any) and de-duplicates users by their unique ID. This is called by getGoogleGroupsAndUsers.

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

tolnai pushed a commit to zooshgroup/aws-google-ssosync that referenced this pull request Jan 9, 2023
@ChrisPates ChrisPates self-assigned this Jan 23, 2023
@ChrisPates ChrisPates added the enhancement New feature or request label Jan 23, 2023
@AmitBaranes
Copy link

any update here?

@ChrisPates
Copy link
Contributor

So, I have multiple issues and pull requests relating to the how ssosync builds the user/group/group membership datasets. Having divide deep into the code it needs refactoring, which is where I currently am (In a feature branch).

Once I have a functional build, I would be appreciate feedback before I push to master. Let me know If you would like me to update this thread when I have a candidate build.

@AmitBaranes
Copy link

So, I have multiple issues and pull requests relating to the how ssosync builds the user/group/group membership datasets. Having divide deep into the code it needs refactoring, which is where I currently am (In a feature branch).

Once I have a functional build, I would be appreciate feedback before I push to master. Let me know If you would like me to update this thread when I have a candidate build.

Sure, I'd be happy to test it out.

@IDisposable
Copy link

Once I have a functional build, I would be appreciate feedback before I push to master. Let me know If you would like me to update this thread when I have a candidate build.

Please count me in for a review

return nil, err
}

seenUsers := make(map[string]bool)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of mapping to a bool, can we map to the user right here only if not seen before... just do the s.google.GetUser(m.Id) call right here?

@ChrisPates
Copy link
Contributor

So the feature branch is a much deeper over all of the internal logic. Getting back to the a left hand model of the Google directory (users, groups and memberships, filtered based on the supplied parameters) and comparing it to a right hand model of identity store (user, groups and memberships).

Plus making better use of the external ids in identity store so we get faster more accurate matches, that survive updates on the left hand side, with a fall back match based on email address, so we can minimise delete/recreate events which result in loss of permission assignments in identity center.

@terricain terricain closed this by deleting the head repository Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
4 participants