SOLVED

extension attributes

%3CLINGO-SUB%20id%3D%22lingo-sub-1162822%22%20slang%3D%22en-US%22%3Eextension%20attributes%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1162822%22%20slang%3D%22en-US%22%3E%3CP%3EI'm%20confused%20on%20the%20different%20extension%20attributes%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20using%26nbsp%3Bget-azureaduserextension%2C%20you%20get%20a%20list%20of%20extension%20attributes%20in%20the%20following%20format%3A%3C%2FP%3E%3CP%3Eextension_000c7c1090b04b55a0729dde2c757000_extensionAttribute1%26nbsp%3B%3C%2FP%3E%3CP%3Eextension_000c7c1090b04b55a0729dde2c757000_extensionAttribute2%3C%2FP%3E%3CP%3E...%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThese%20are%20also%20present%20using%20the%20MS%20graph%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2F%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fgraph.microsoft.com%2Fbeta%2FUsers%2F%3CUPN%3E%2F%26nbsp%3B%3C%2FUPN%3E%3C%2FA%3E%3C%2FP%3E%3CP%3E%22extension_000c7c1090b04b55a0729dde2c757000_extensionAttribute1%22%3A%20%22value%22%2C%3CBR%20%2F%3E%22extension_000c7c1090b04b55a0729dde2c757000_extensionAttribute2%22%3A%20%22value%22%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHowever%20you%20can%20also%20query%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2F%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fgraph.microsoft.com%2Fbeta%2FUsers%2F%3CUPN%3E%2F%3C%2FUPN%3E%3C%2FA%3EonPremisesExtensionAttributes%3C%2FP%3E%3CP%3Ewhich%20returns%3A%3C%2FP%3E%3CP%3E%22extensionAttribute1%22%3A%20%22value%22%2C%3CBR%20%2F%3E%22extensionAttribute2%22%3A%20%22value%22%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAre%20%22%3CSTRONG%3Eextension_0...0_extensionAttribute%3C%2FSTRONG%3E*%22%20identical%20to%20%22%3CSTRONG%3EextensionAttribute%3C%2FSTRONG%3E*%22%3F%20Where%20and%20when%20are%20these%20synced%3F%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20have%20one%20extensionAttribute%20which%20is%20not%20present%20as%26nbsp%3Bextension_0...0_extensionAttribute.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHow%20can%20we%20make%20sure%20all%26nbsp%3BextensionAttributes%20are%20also%20available%20as%26nbsp%3Bextension_0...0_extensionAttribute%3F%3C%2FP%3E%3CP%3ECan%20Powershell%20also%20returns%26nbsp%3BextensionAttributes%20(instead%20of%26nbsp%3Bextension_0...0_extensionAttributes)%20%3F%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBart%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1162822%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20AD%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1163073%22%20slang%3D%22en-US%22%3ERe%3A%20extension%20attributes%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1163073%22%20slang%3D%22en-US%22%3E%3CP%3ENo%20they%20aren't.%20The%20first%20set%20is%20custom%20%22extensions%22%20you've%20configured%20via%20AAD%20Connect%2Fmatching%20app%20on%20AAD%20side.%20Like%20when%20you%20want%20to%20create%20an%20user_likes_which_color%20attribute.%26nbsp%3BThe%20second%20one%20is%20the%20%22standard%22%20set%20of%20extension%20attributes%20you%20get%20in%20the%20(Exchange)%20AD%20schema%2C%20customattributeXX%20(and%20the%20extended%20ones).%3C%2FP%3E%3C%2FLINGO-BODY%3E
Super Contributor

I'm confused on the different extension attributes

 

When using get-azureaduserextension, you get a list of extension attributes in the following format:

extension_000c7c1090b04b55a0729dde2c757000_extensionAttribute1 

extension_000c7c1090b04b55a0729dde2c757000_extensionAttribute2

...

 

These are also present using the MS graph https://graph.microsoft.com/beta/Users/<upn>/ 

"extension_000c7c1090b04b55a0729dde2c757000_extensionAttribute1": "value",
"extension_000c7c1090b04b55a0729dde2c757000_extensionAttribute2": "value",

 

However you can also query https://graph.microsoft.com/beta/Users/<upn>/onPremisesExtensionAttributes

which returns:

"extensionAttribute1": "value",
"extensionAttribute2": "value",

 

Are "extension_0...0_extensionAttribute*" identical to "extensionAttribute*"? Where and when are these synced? 

 

We have one extensionAttribute which is not present as extension_0...0_extensionAttribute.

 

How can we make sure all extensionAttributes are also available as extension_0...0_extensionAttribute?

Can Powershell also returns extensionAttributes (instead of extension_0...0_extensionAttributes) ? 

 

Thanks!

 

Bart

1 Reply
best response confirmed by bart vermeersch (Super Contributor)
Solution

No they aren't. The first set is custom "extensions" you've configured via AAD Connect/matching app on AAD side. Like when you want to create an user_likes_which_color attribute. The second one is the "standard" set of extension attributes you get in the (Exchange) AD schema, customattributeXX (and the extended ones).