-
Notifications
You must be signed in to change notification settings - Fork 1
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
provisioning & roles refactor #13
Conversation
…to jakcinmarina/provisioning
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 noticed a couple of things but they were already in the code so... 🤷
return fmt.Errorf("invalid role type: %s", role) | ||
} | ||
|
||
userGroupsUrl, err := url.JoinPath(baseUrl + "admin.users." + action) |
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 think we want a comma instead of a +
userGroupsUrl, err := url.JoinPath(baseUrl + "admin.users." + action) | |
userGroupsUrl, err := url.JoinPath(baseUrl, "admin.users." + action) |
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 will merge this but the fix will be in the PR for SCIM api. I really don't know why i put + here :D
@@ -113,14 +113,14 @@ func (c *Client) GetUsers(ctx context.Context, teamID, cursor string) ([]UserAdm | |||
values.Add("cursor", cursor) | |||
} | |||
|
|||
usersUrl, err := url.JoinPath(baseUrl + "admin.users.list") | |||
usersUrl, err := url.JoinPath(baseUrl + "users.list") |
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.
usersUrl, err := url.JoinPath(baseUrl + "users.list") | |
usersUrl, err := url.JoinPath(baseUrl, "users.list") |
…to jakcinmarina/provisioning
added support for provisioning of roles:
Changed how roles are granted, no longer on user resource, but on workspace resource since the roles are per resource.