Jump to content

How to retrieve and edit a users intrude list.


Andrew_C
 Share


Recommended Posts

Hi All

 

I am currently attempting to view a users call intrusion list (who can intrude on them). I have had a look at whats returned when I Get-IpPbxUser and Get-IpPbxUserData and cant see anything relating to call intrude.

 

Can anyone point me in the right direction?

 

Thanks, Andrew

Link to comment
Share on other sites


After playing around with UserIntrusionNumberEntryCollection I can quite happily get the users intrude list. I would now like to add to this list.

 

Is there a command like Add-IpPbxInternalNumberToUser 

such as Add-IpPbxIntrudeInternalNumberToUser 

Link to comment
Share on other sites


  • 2 years later...
  • 1 year later...
  • 3 months later...

Hello All,

 

i was finally able to add users to the Call Intrusion List. Beware of errors, as i have been working on this a while and it's late. I'm also not sure if this is the correct way to do it, but it works.

 

$user = Get-IpPbxUser -UserName "Hans"

$CollectionEntry = New-Object "SWConfigDataClientLib.Proxies.Users.UserIntrusionNumberEntry"

$CollectionEntry.UserID = $user.UserID

$CollectionEntry.InternalNumberID = 364 #InternalNumberID of the supervisor) -can be retrieved using $internalNr = Get-InternalNumber -UserName "Supervisor1" -> $internalNr.InternalNumberID

$user.UserIntrusionNumberEntryCollection.Add($CollectionEntry)

Update-IpPbxUser -UserEntry $user

 

#with echo $user.UserIntrusionNumberEntryCollection you can see the existing intrusion entries, to make creation of new ones easier.

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.