Tease out extensionAttribute5 with get-mguser

in flag

Trying to force myself to start using graph thru powershell since it looks like the AzureAD powershell commandlets are going the way of the dodo at some point. Wondering if there is a way to use get-mguser to grab extensionAttribute5.

I know you have to use expandedproperties to get to the onpremextensions. You also have to use the beta schema to see the extension attributes in place. Where I'm lost is exactly HOW to tease out a single property (if you even can).

For instance, (get-azureaduser -SearchString "NAME").objectID would return the azureobjectID for the user being gotten. I'm looking for something similar to that for extension attributes with get-mguser.

Been googling so much at this point that I think I might be thinking about this wrong. Sorry! Any help or pointers would be beyond appreciated.


Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.