Jump to content
Andrew_C

How to retrieve and edit a users intrude list.

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

Edited by Andrew_C
edited title to better reflect topic

Share this post


Link to post
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 

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • 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.