-
Notifications
You must be signed in to change notification settings - Fork 27
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
How do we set the role of a user? #30
Comments
You can try and use PSZoom/Public/Utils/Invoke-ZoomRestMethod.ps1. This hasn't bee added to PowerShell Gallery, yet. Ideally you would open up a pull request and add the functionality. |
I see... I was actually meaning to ask how to update a user's role (https://marketplace.zoom.us/docs/api-reference/zoom-api/roles/addrolemembers), but I imagine it's the same answer. |
Woohoo.. it's a steep learning curve, but thank you for making it less steep! |
Actually... one quick question... I got it to list the roles using this: So building on that I can set the roles using this I imagine, but I'm not sure how to add the userID to this so that it updates a specific user's role? $request = [System.UriBuilder]"https://api.zoom.us/v2/roles/RoleIDGoesHere/members" |
Ah, figured it out... I added -Body '{"members":[{"id":"MemberIDHere"}]}' and it worked!! Thanks so much for creating this! |
Something like this (code not verified):
|
Nice work. You're welcome. |
The API seems to have a way to update the role (https://marketplace.zoom.us/docs/api-reference/zoom-api/roles/updaterole) but I can't find the corresponding PSZoom command to update it. Is there a way to do this with PSZoom?
Thank you.
The text was updated successfully, but these errors were encountered: