SOLVED

Extension Attributes on groups

Copper 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 (Copper 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

1 best response

Accepted Solutions
best response confirmed by Ottovw (Copper 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

View solution in original post