SOLVED

Assigning a set of policies to an individual user at once

%3CLINGO-SUB%20id%3D%22lingo-sub-1388348%22%20slang%3D%22en-US%22%3EAssigning%20a%20set%20of%20policies%20to%20an%20individual%20user%20at%20once%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1388348%22%20slang%3D%22en-US%22%3E%3CP%3EI%20would%20like%20to%20add%20multiple%20policies%20to%20an%20individual%20user%20in%26nbsp%3B%20a%20single%20step%20using%20powershell%20commands.%3C%2FP%3E%3CP%3EI%20have%20gone%20through%20documentation%20very%20well%20but%20i%20cannot%20find%20anything%20which%20could%20help%20me.%20So%20is%20there%20any%20powershell%20command%20which%20could%20help%20me%20to%20do%20%3F%20If%20it's%20there%20please%20let%20me%20know%20and%20if%20its%20not%20available%20can%20we%20create%20our%20own%20custom%20policy%20package%20%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1388348%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdministrator%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EBest%20Practices%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ECommunity%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1388371%22%20slang%3D%22en-US%22%3ERe%3A%20Assigning%20a%20set%20of%20policies%20to%20an%20individual%20user%20at%20once%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1388371%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F667335%22%20target%3D%22_blank%22%3E%40Desusai%3C%2FA%3E%26nbsp%3BHello%2C%20you%20mean%20this%20isn't%20what%20you're%20looking%20for%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fassign-policies%23ways-to-assign-policies%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fassign-policies%23ways-to-assign-policies%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1388390%22%20slang%3D%22en-US%22%3ERe%3A%20Assigning%20a%20set%20of%20policies%20to%20an%20individual%20user%20at%20once%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1388390%22%20slang%3D%22en-US%22%3E%3CP%3ENo%26nbsp%3B%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F551905%22%20target%3D%22_blank%22%3E%40bec064%3C%2FA%3E%26nbsp%3B%2C%20I%20was%20looking%20for%20a%20cmdlet%20where%20I%20could%20apply%20both%20TeamsMeetingPolicy%20as%20well%20as%20TeamsMessagingPolicy%20to%20a%20user%20in%20single%20step%20.%20Like%20a%20single%20cmdlet%20for%20applying%20multiple%20policies%20to%20a%20user%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1388400%22%20slang%3D%22en-US%22%3ERe%3A%20Assigning%20a%20set%20of%20policies%20to%20an%20individual%20user%20at%20once%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1388400%22%20slang%3D%22en-US%22%3EHave%20you%20had%20a%20look%20at%20policy%20packages%3A%3CBR%20%2F%3E%3CBR%20%2F%3EAssign%20a%20package%20then%20customize%20the%20policy%E2%80%99s%20in%20the%20package%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fmanage-policy-packages%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fmanage-policy-packages%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EThen%20use%20power%20shell%20command%20To%20distribute%20this%20to%20one%20or%20more%20users%20%3A%3CBR%20%2F%3ECsBatchPolicyPackageAssignmentOperation%3CBR%20%2F%3E%3CBR%20%2F%3ESee%20here%3A%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fassign-policies%23assign-a-policy-package%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fassign-policies%23assign-a-policy-package%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EAdam%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1388465%22%20slang%3D%22en-US%22%3ERe%3A%20Assigning%20a%20set%20of%20policies%20to%20an%20individual%20user%20at%20once%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1388465%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F667335%22%20target%3D%22_blank%22%3E%40Desusai%3C%2FA%3E%26nbsp%3BHello%20again%2C%20Adam%20explained%20it%20well%2C%20I%20just%20provided%20the%20link.%20Good%20luck!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1388467%22%20slang%3D%22en-US%22%3ERe%3A%20Assigning%20a%20set%20of%20policies%20to%20an%20individual%20user%20at%20once%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1388467%22%20slang%3D%22en-US%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F551905%22%20target%3D%22_blank%22%3E%40bec064%3C%2FA%3E%26nbsp%3B%20%2C%20Thank%20you%20for%20your%20response%20and%20spending%20your%20valuable%20time%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1388487%22%20slang%3D%22en-US%22%3ERe%3A%20Assigning%20a%20set%20of%20policies%20to%20an%20individual%20user%20at%20once%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1388487%22%20slang%3D%22en-US%22%3E%3CP%3EHey%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F72542%22%20target%3D%22_blank%22%3E%40adam%20deltinger%3C%2FA%3E%26nbsp%3B%2CThanks%20for%20the%20response%20.%20I%20am%20quite%20new%20to%20Microsoft%20Teams%20and%20i%20am%20unable%20to%20customize%20the%20policies%20in%20the%20policy%20package%20as%20the%20options%20are%20blocked%20and%20i%20am%20unable%20to%20edit%20them.%20I%20had%20assigned%20Education%20Teacher%20package%20to%20a%20user%20and%20then%20i%20am%20trying%20to%20customise%20it%20but%20i%20cannot%20as%20it%20was%20blocked%20.%20Can%20you%20please%20help%20me%20out%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Screenshot%20(182).png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F191589iFF973B970F7CC203%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Screenshot%20(182).png%22%20alt%3D%22Screenshot%20(182).png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

I would like to add multiple policies to an individual user in  a single step using powershell commands.

I have gone through documentation very well but i cannot find anything which could help me. So is there any powershell command which could help me to do ? If it's there please let me know and if its not available can we create our own custom policy package ?

 

6 Replies
Highlighted
Highlighted

No  @bec064 , I was looking for a cmdlet where I could apply both TeamsMeetingPolicy as well as TeamsMessagingPolicy to a user in single step . Like a single cmdlet for applying multiple policies to a user 

Highlighted
Best Response confirmed by Desusai (Occasional Contributor)
Solution
Have you had a look at policy packages:

Assign a package then customize the policy’s in the package

https://docs.microsoft.com/en-us/microsoftteams/manage-policy-packages

Then use power shell command To distribute this to one or more users :
CsBatchPolicyPackageAssignmentOperation

See here:

https://docs.microsoft.com/en-us/microsoftteams/assign-policies#assign-a-policy-package

Adam
Highlighted

@Desusai Hello again, Adam explained it well, I just provided the link. Good luck!

Highlighted

Hello @bec064  , Thank you for your response and spending your valuable time

Highlighted

Hey @adam deltinger ,Thanks for the response . I am quite new to Microsoft Teams and i am unable to customize the policies in the policy package as the options are blocked and i am unable to edit them. I had assigned Education Teacher package to a user and then i am trying to customise it but i cannot as it was blocked . Can you please help me out

Screenshot (182).png