-
Notifications
You must be signed in to change notification settings - Fork 185
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
feat: Added functionality to sync and update the disabled status for a user #9
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 this is really great work. Left some suggestions. Ping me if you feel ready for the next round and then get this merged.
@@ -54,6 +54,7 @@ type Client interface { | |||
FindGroupByDisplayName(string) (*Group, error) | |||
FindUserByEmail(string) (*User, error) | |||
IsUserInGroup(*User, *Group) (bool, error) | |||
UpdateUser(*User) (*User, error) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would suggest to not use references here, but return the values.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I copied the logic from the other functions. I kept the pointer in the function declaration but changed all functions to return values instead of named return values and referencs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Updating aws-credentials to v2 tag
*Issue #8
Description of changes:
This PR add the functionality to synchronise the Active/Disabled State for a user between Gsuite and AWS SSO.
It contains added logic and a new function UpdateUser.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.