Jump to content

Set user rights through powershell


Tom_Falk_Hansen
 Share


Recommended Posts

  • Most Valued User
connect-ippbx
$Group = Get-IpPbxGroup -GroupName "Jeder"
Get-IpPbxGroupMember -GroupEntry $Group | ForEach-Object {
 
    $userEntry = $_
    $ud = Get-IpPbxUserData -UserEntry $userEntry
    $ud.m_bUserVideoAllowed = 0
    Set-IpPbxUserData -UserEntry $userEntry -UserData $ud
   
    # Status Output
    Write-Host "User updated: $($userEntry.Name)"
}
disconnect-ippbx

This should work. You just have to change the GroupName to your needs. 

Link to comment
Share on other sites


  • Most Valued User

To get all Values from UserData you can use this command and then modify a value to your needs

$ud = Get-IpPbxUserData -Username test

$ud |format-list

 

You should start Powershell ISE and then you see all the commandlets and you can get a description with examples.

image.png.b256eabbc52d580087f31adff5cebe21.png

Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and have taken note of our Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.