Comments (7)
This is already a function created in PSZoom, it's called Add-ZoomGroupMember.ps1. Please let me know if it works or not.
.EXAMPLE
Add a single user to a single group.
$GroupId = ((Get-ZoomGroups) | where-object {$_ -eq 'Light Side'}).id
Add-ZoomGroupMembers -group $GroupID -Email [email protected], [email protected]
.EXAMPLE
Add users to a single group.
Get-ZoomGroups | where-object {$_ -eq 'Dark Side'} | Add-ZoomGroupMembers -email '[email protected]','[email protected]'
.EXAMPLE
Add a single user to all groups matching 'Side'.
Get-ZoomGroups | where-object {$_ -like '*Side*'} | Add-ZoomGroupMembers -email '[email protected]'
from pszoom.
I'm sorry, but that module is referring to Groups, not IMGroups (I tried using the IMGroup ID but it rejects it saying it's 'not found')
Add-ZoomGroupMemebers is referring to "https://api.zoom.us/v2/groups/$Id/members"
The IM groups that I'm talking about above are referring to this API: "https://api.zoom.us/v2/im/groups/$Id/members" ( https://marketplace.zoom.us/docs/api-reference/zoom-api/im-groups/imgroupmemberscreate )
A few weeks ago, my code was working. Now, it's consistently not working. Not sure what would have changed. I was on pszoom 1.13, but I just updated to latest, and it doesn't make any difference.
from pszoom.
My bad... I updated to 1.16, but didn't restart the powershell ISE (even after removing and unloading the old package)... Restarting the ISE fixed it.
from pszoom.
@izirdum-FGSD Since this is practically the same function, with a different URI, I created a new function:
PSZoom/Public/IMGroups/Add-ZoomIMDirectoryGroupMembers.ps1
Could you test?
from pszoom.
It doesn't quite work. It'll run without erroring, but it returns
`ids added_at
2021-09-30T20:51:57Z`
The ids are blank in the list above, so it seems it didn't add anything (and the user doesn't show up in the list).
The commands I tried to run (same results (doesn't add the user to the IM group)):
Add-ZoomIMDirectoryGroupMembers -groupid $groupid -MemberId $ZoomAccountUser.id
Add-ZoomIMDirectoryGroupMembers -groupid $groupid -MemberId $ZoomAccountUser.id -email $email
Add-ZoomIMDirectoryGroupMembers -groupid $groupid -email $email
from pszoom.
I found the issue... in your file on line 78:
if ($PSBoundParameters.ContainsKey('MemberIds')) {
MemberIds should be just MemberId:
if ($PSBoundParameters.ContainsKey('MemberId')) {
from pszoom.
I started a pull-request, but I've never done one before, so I'm not sure if I'm doing it right.
from pszoom.
Related Issues (20)
- Is there a way to add a manager to a zoom user?
- Error when creating new users: "Invalid URI: The hostname could not be parsed." HOT 3
- Get-ZoomMeetings Error 400 Bad Request HOT 1
- Whatif doesn't prevent action HOT 1
- 404 Error Removing Users HOT 9
- Get-ZoomUsers -Status All HOT 2
- Where is OAuth on Zoom marketplace HOT 5
- Fix code scanning alert - File 'Connect-PSZoom.ps1' uses ConvertTo-SecureString with plaintext. This will expose secure inf...
- Fix code scanning alert - File 'New-OAuthToken.ps1' uses ConvertTo-SecureString with plaintext. This will expose secure inf... HOT 1
- PSZoom - How to add a manger to a new user?
- Get Sub Account Users HOT 5
- Restart-ZoomRoom 401 error HOT 2
- change the "user type" HOT 1
- Getting Unauthorized error when using Get-ZoomAccountRecordings HOT 1
- zoom call queues HOT 1
- Powershell Gallery is missing new Zoom Phone Functions
- ParticipantVideo parameter not supported by NewMeeting or UpdateMeeting HOT 1
- User accounts not getting created HOT 1
- "Cannot process argument transformation on parameter 'Token'" after updating to 2.0.4.0 HOT 3
- [Query] billing api. Is it possible to query licenses? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pszoom.