SOLVED

Extension Attributes on groups

%3CLINGO-SUB%20id%3D%22lingo-sub-1155339%22%20slang%3D%22en-US%22%3EExtension%20Attributes%20on%20groups%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1155339%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20are%20using%20extension%20attributes%20on%20users.%26nbsp%3BI%20can't%20not%20find%20any%20clear%20answer%20how%20to%20set%20an%20extension%20attribute%20we%20just%20created%20to%20a%20Azure%20AD%20Group.%20Is%20this%20even%20possible%20because%20i%20can't%20find%20any%20PowerShell%20command%20just%20like%20the%20one%20for%20adding%20extension%20on%20Users%20(Set-AzureADUserExtension).%26nbsp%3B%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EDe%20documentation%20about%20extension%20attributes%20are%20here%3A%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fazure%2Factive-directory%2Fusing-extension-attributes-sample%3Fview%3Dazureadps-2.0%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%3CBR%20%2F%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fazure%2Factive-directory%2Fusing-extension-attributes-sample%3Fview%3Dazureadps-2.0%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIIt%20literally%20says%20this%3A%26nbsp%3B%3C%2FP%3E%3CP%3E%3CEM%3EYou%20can%20attach%20an%20extension%20attribute%20to%20the%20following%20object%20types%3A%3C%2FEM%3E%3C%2FP%3E%3CUL%3E%3CLI%3E%3CEM%3Eusers%3C%2FEM%3E%3C%2FLI%3E%3CLI%3E%3CSTRONG%3E%3CEM%3Egroups%3C%2FEM%3E%3C%2FSTRONG%3E%3C%2FLI%3E%3CLI%3E%3CEM%3E....%3C%2FEM%3E%3C%2FLI%3E%3C%2FUL%3E%3CP%3EFor%20example%2C%20i%20have%20just%20created%20a%20test%20extension%20with%20TargetObjects%20'Groups'.%20But%20how%20do%20we%20add%20this%20extension%20on%20a%20group%3F%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22extension_attribute_group.PNG%22%20style%3D%22width%3A%20914px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F169375iB4A9A87D5C0430BF%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22extension_attribute_group.PNG%22%20alt%3D%22extension_attribute_group.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20users%20you%20can%20find%20the%20extension%20attributes%20by%20using%20powershell%20command%3A%26nbsp%3B%3CBR%20%2F%3EGet-AzureADUser%20-ObjectId%20%22xxx-xxx-xxx-xx%22%20%7C%20select%20-ExpandProperty%20extensionproperty%3CBR%20%2F%3E%3CBR%20%2F%3EIs%20there%20a%20way%20to%20show%20the%20extension%20attributes%20on%20groups%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1155339%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1646881%22%20slang%3D%22en-US%22%3ERe%3A%20Extension%20Attributes%20on%20groups%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1646881%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F547241%22%20target%3D%22_blank%22%3E%40Ottovw%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%2C%20I%20have%20the%20exact%20question.%20If%20you%20have%20found%20a%20resolution%20please%20share.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1758780%22%20slang%3D%22en-US%22%3ERe%3A%20Extension%20Attributes%20on%20groups%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1758780%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F786541%22%20target%3D%22_blank%22%3E%40mailerman2080%3C%2FA%3E%26nbsp%3Bsame%20here%2C%20I%20guess%20is%20not%20possible%20to%20do%20it%20via%20Powershell%20there%20should%20be%20another%20way%2C%20hopefully%2C%20someone%20else%20will%20clarify%20that%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1758985%22%20slang%3D%22en-US%22%3ERe%3A%20Extension%20Attributes%20on%20groups%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1758985%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F786541%22%20target%3D%22_blank%22%3E%40mailerman2080%3C%2FA%3E%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F39706%22%20target%3D%22_blank%22%3E%40Giuliano%20De%20Luca%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENot%20through%20PowerShell%20but%20I%20do%20have%20tested%20this%20with%20the%20use%20of%20Graph%20API%20and%20extensibility-schema%20for%20groups.%20I%20think%20this%20is%20the%20only%20way%20but%20it%20only%20work%20on%20O365%20groups%20and%20when%20extra%20data%20is%20inserted%2C%20the%20data%20is%20not%20visible%20true%20PowerShell.%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fextensibility-schema-groups%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fextensibility-schema-groups%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hello,

 

We are using extension attributes on users. I can't not find any clear answer how to set an extension attribute we just created to a Azure AD Group. Is this even possible because i can't find any PowerShell command just like the one for adding extension on Users (Set-AzureADUserExtension).  

De documentation about extension attributes are here:
https://docs.microsoft.com/en-us/powershell/azure/active-directory/using-extension-attributes-sample...

 

IIt literally says this: 

You can attach an extension attribute to the following object types:

  • users
  • groups
  • ....

For example, i have just created a test extension with TargetObjects 'Groups'. But how do we add this extension on a group? 

extension_attribute_group.PNG

 

For users you can find the extension attributes by using powershell command: 
Get-AzureADUser -ObjectId "xxx-xxx-xxx-xx" | select -ExpandProperty extensionproperty

Is there a way to show the extension attributes on groups? 

3 Replies

@Ottovw 

Hi, I have the exact question. If you have found a resolution please share. 

 

 

Thanks

 

@mailerman2080 same here, I guess is not possible to do it via Powershell there should be another way, hopefully, someone else will clarify that

best response confirmed by Ottovw (Occasional Contributor)
Solution

@mailerman2080 @Giuliano De Luca 

 

Not through PowerShell but I do have tested this with the use of Graph API and extensibility-schema for groups. I think this is the only way but it only work on O365 groups and when extra data is inserted, the data is not visible true PowerShell. 

https://docs.microsoft.com/en-us/graph/extensibility-schema-groups