Grant-CsCallingLineIdentity

%3CLINGO-SUB%20id%3D%22lingo-sub-61093%22%20slang%3D%22en-US%22%3EGrant-CsCallingLineIdentity%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-61093%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDoes%20anyone%20know%20if%20it%20is%20possible%20to%20to%20use%26nbsp%3BGrant-CsCallingLineIdentity%20on%20a%20Security%2Fdistribution%20group%3F%3C%2FP%3E%3CP%3EThere%20is%20very%20little%20documentation%20on%20this%20command%20and%20the%20only%20example%20use%20i%20can%20find%20is%20assigning%20to%20a%20single%20user%20(Which%20works).%20Being%20able%20to%20assign%20to%20a%20group%20would%20be%20infinitly%20more%20useful.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-61093%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EPSTN%20Calling%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-64441%22%20slang%3D%22en-US%22%3ERe%3A%20Grant-CsCallingLineIdentity%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-64441%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20%40Deleted%26nbsp%3B-%20Please%20be%20sure%20you%20add%20this%20to%20%3CA%20href%3D%22http%3A%2F%2Fwww.skypefeedback.com%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ewww.skypefeedback.com%3C%2FA%3E%20so%20we%20can%20formally%20track%20your%20product%20feedback.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-63613%22%20slang%3D%22en-US%22%3ERe%3A%20Grant-CsCallingLineIdentity%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-63613%22%20slang%3D%22en-US%22%3E%3CP%3EUnfortunately%20policies%20are%20assigned%20to%20user%20objects%2C%20but%20as%20you%20suggest%20get%20the%20group%20members%2C%20do%20a%20foreach%20and%20grant%20the%20policy%20to%20each%20user.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20succesfully%20implemented%20this%20in%20a%20maintenance%20script%20at%20some%20of%20my%20customers%2C%20so%20every%20member%20of%20group%20CLI_Anonymous%26nbsp%3Bshows%20anonymous%2C%20members%20of%20CLI_%2B4532720730%20shows%20%2B4532720730%20etc.%20only%20drawback%20is%20the%20order%20of%20the%20groups%20in%20case%20a%20user%20is%20member%20of%20more%20than%20one%20of%20these%20groups.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHope%20this%20helps%20you%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%2FKenneth%20ML%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-62998%22%20slang%3D%22en-US%22%3ERe%3A%20Grant-CsCallingLineIdentity%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-62998%22%20slang%3D%22en-US%22%3E%3CP%3EThank%20you%20for%20the%20information%20Leonardo.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20understand%20the%20relationship%2C%20however%20it%20would%20be%20extremely%20helpful%20to%20be%20able%20to%20apply%20a%20CallerID%20policy%20to%20a%20collection%20of%20users%2C%20rather%20than%20having%20to%20apply%20single%20instances.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20sure%20there's%20a%20way%20a%20script%20could%20be%20created%20and%20do%20a%20%22For%20each%22%20operation%20on%20each%20of%20those%20users%2C%20and%20apply%20the%20policy%2C%20but%20it%20would%20be%20extremely%20helpful%20management%20wise%20if%20this%20ability%20was%20integrated.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-62918%22%20slang%3D%22en-US%22%3ERe%3A%20Grant-CsCallingLineIdentity%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-62918%22%20slang%3D%22en-US%22%3E%3CP%3EIf%20we%20look%20at%20%3CSTRONG%3EGet-CsCallingLineIdentity%20-Tenant%20%3CTENANTID%3E%20from%20%3C%2FTENANTID%3E%3C%2FSTRONG%3E%3CA%20href%3D%22https%3A%2F%2Ftechnet.microsoft.com%2Fen-us%2Flibrary%2Fmt793856.aspx%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CSTRONG%3Ehttps%3A%2F%2Ftechnet.microsoft.com%2Fen-us%2Flibrary%2Fmt793856.aspx%3C%2FSTRONG%3E%3C%2FA%3E%20the%20description%20tells%20us%3A%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--1328698161%22%20id%3D%22toc-hId-1820056001%22%3EDetailed%20Description%3C%2FH2%3E%0A%3CP%3EBy%20default%2C%20the%20Skype%20for%20Business%20Online%20user's%20phone%20number%20can%20be%20seen%20when%20that%20user%20makes%20a%20call%20to%20a%20PSTN%20phone%2C%20or%20when%20a%20call%20comes%20in.%20You%20can%20create%20Caller%20ID%20policies%20to%20change%20this%20behavior%2C%20and%20you%20can%20use%20the%20%3CSTRONG%3EGet-CsCallingLineIdentity%3C%2FSTRONG%3E%20cmdlet%20to%20display%20the%20existing%20Caller%20ID%20policies%20for%20your%20organization.%20In%20the%20tenant%3A%3C%2FP%3E%0A%3CP%3EPS%20C%3A%5CWindows%5Csystem32%26gt%3B%20Get-CsCallingLineIdentity%3C%2FP%3E%0A%3CP%3EIdentity%26nbsp%3B%20%3A%20Global%3C%2FP%3E%0A%3CP%3EDescription%20%3A%3C%2FP%3E%0A%3CP%3EEnableUserOverride%20%3A%20False%3C%2FP%3E%0A%3CP%3EServiceNumber%26nbsp%3B%20%3A%3C%2FP%3E%0A%3CP%3ECallingIDSubstitute%20%3A%20LineUri%3C%2FP%3E%0A%3CP%3EBlockIncomingPstnCallerID%20%3A%20False%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIdentity%20%3A%20Tag%3AAnonymous%3C%2FP%3E%0A%3CP%3EDescription%20%3A%20Anonymous%20policy%3C%2FP%3E%0A%3CP%3EEnableUserOverride%26nbsp%3B%20%3A%20False%3C%2FP%3E%0A%3CP%3EServiceNumber%26nbsp%3B%20%3A%3C%2FP%3E%0A%3CP%3ECallingIDSubstitute%26nbsp%3B%20%3A%20Anonymous%3C%2FP%3E%0A%3CP%3EBlockIncomingPstnCallerID%20%3A%20False%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENow%20if%20we%20look%20at%20Grant-CsCallingLineIdentity%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--441194480%22%20id%3D%22toc-hId--732100960%22%3E%3CSPAN%3EDetailed%20Description%3C%2FSPAN%3E%3C%2FH2%3E%0A%3CP%3EYou%20can%20either%20change%20or%20block%20the%20Caller%20ID%20(also%20called%20a%20Calling%20Line%20ID)%20for%20a%20user.%20By%20default%2C%20the%20Skype%20for%20Business%20Online%20user's%20phone%20number%20can%20be%20seen%20when%20that%20user%20makes%20a%20call%20to%20a%20PSTN%20phone%2C%20or%20when%20a%20call%20comes%20in.%20You%20can%20create%20a%20Caller%20ID%20policy%20to%20provide%20an%20alternate%20displayed%20number%2C%20or%20to%20block%20any%20number%20from%20being%20displayed%3B%20you%20can%20then%20apply%20the%20Caller%20ID%20policy%20to%20a%20specific%20user.%3C%2FP%3E%0A%3CP%3EThe%20problem%20here%20is%20that%20the%20DL's%20are%20not%20a%20%22caller%20id%22%20it%20has%20only%20an%20STMP%20address%20so%20from%20my%20understanding%20you%20can't%20Grant-CSCallingLineIdentity%20to%20this%20object.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-62352%22%20slang%3D%22en-US%22%3ERe%3A%20Grant-CsCallingLineIdentity%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-62352%22%20slang%3D%22en-US%22%3E%3CP%3EI%20haven't%20been%20able%20to%20find%20anyhting%20as%20well%20and%20have%20experimented%20with%20DL's.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20there%20a%20proper%20usage%20with%20this%3F%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20info%20regarding%20this%20would%20be%20extremely%20helpful!%3C%2FP%3E%3C%2FLINGO-BODY%3E
Contributor

Hi,

 

Does anyone know if it is possible to to use Grant-CsCallingLineIdentity on a Security/distribution group?

There is very little documentation on this command and the only example use i can find is assigning to a single user (Which works). Being able to assign to a group would be infinitly more useful.

 

Thanks

5 Replies

I haven't been able to find anyhting as well and have experimented with DL's.

 

Is there a proper usage with this? 

 

Any info regarding this would be extremely helpful!

If we look at Get-CsCallingLineIdentity -Tenant <TenantID> from https://technet.microsoft.com/en-us/library/mt793856.aspx the description tells us:

Detailed Description

By default, the Skype for Business Online user's phone number can be seen when that user makes a call to a PSTN phone, or when a call comes in. You can create Caller ID policies to change this behavior, and you can use the Get-CsCallingLineIdentity cmdlet to display the existing Caller ID policies for your organization. In the tenant:

PS C:\Windows\system32> Get-CsCallingLineIdentity

Identity  : Global

Description :

EnableUserOverride : False

ServiceNumber  :

CallingIDSubstitute : LineUri

BlockIncomingPstnCallerID : False

 

Identity : Tag:Anonymous

Description : Anonymous policy

EnableUserOverride  : False

ServiceNumber  :

CallingIDSubstitute  : Anonymous

BlockIncomingPstnCallerID : False

 

Now if we look at Grant-CsCallingLineIdentity

Detailed Description

You can either change or block the Caller ID (also called a Calling Line ID) for a user. By default, the Skype for Business Online user's phone number can be seen when that user makes a call to a PSTN phone, or when a call comes in. You can create a Caller ID policy to provide an alternate displayed number, or to block any number from being displayed; you can then apply the Caller ID policy to a specific user.

The problem here is that the DL's are not a "caller id" it has only an STMP address so from my understanding you can't Grant-CSCallingLineIdentity to this object.

Thank you for the information Leonardo.

 

I understand the relationship, however it would be extremely helpful to be able to apply a CallerID policy to a collection of users, rather than having to apply single instances.

 

I'm sure there's a way a script could be created and do a "For each" operation on each of those users, and apply the policy, but it would be extremely helpful management wise if this ability was integrated.

Unfortunately policies are assigned to user objects, but as you suggest get the group members, do a foreach and grant the policy to each user.

 

I have succesfully implemented this in a maintenance script at some of my customers, so every member of group CLI_Anonymous shows anonymous, members of CLI_+4532720730 shows +4532720730 etc. only drawback is the order of the groups in case a user is member of more than one of these groups.

 

Hope this helps you

 

/Kenneth ML

Thanks @Deleted - Please be sure you add this to www.skypefeedback.com so we can formally track your product feedback.