Get a list of ALL user properties

Learning something new every day. There was a question in the forums on today on obtaining a list of all attributes a user object has.

I used to think that the way to get the list of attributes exposed directly via PowerShell is to call:

PS:\> Get-QADUser | Get-Member

Or use a user as an example:

PS:\> Get-QADUser "Dmitry Sotnikov" | Format-List

And if you want to get to the more advanced AD properties (such as for example Msds-ResultantPSo in this example of managing fine-grained password policies) you are screwed and have to go to MSDN and read the AD schema docs.

As it turns out, this is not the case! You can get the full list of attributes available for a user object with this one call:

PS C:\> Get-QADUser -ReturnPropertyNamesOnly -IncludeAllProperties


Thanks to Rostislav for the tip!

In my network this gave 458 attributes so I am not providing the full output here.

See the whole thread here.

Tags: , , , , , , ,

UPDATE: Changed Format-Table to Format-List. Format-Table with no property names specified after it is more or less useless – it just gives the default output. Format-List by default lists all properties exposed directly via PowerShell with their values.

About these ads

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

My Recent Tweets

  • Nice little Chrome add-on showing which emails in your inbox have tracking codes in them: 1 week ago
  • If you need help with business strategy, marketing and sales enablement, Liana and her COPERNICI are finishing a few… 2 weeks ago
  • One of the leading telecommunications companies Axiata launches GSM API platform based on WSO2 integration platform 4 weeks ago
  • New release of App Factory - the PaaS powering our WSO2​ App Cloud. As usual, announcements and discussions are on t… 1 month ago
  • Looks like some hotmail servers were significantly delaying email last week. We had one customer email get to us 6 days after he sent it. :( 1 month ago


The posts on this blog are provided “as is” with no warranties and confer no rights. The opinions expressed on this site are mine and mine alone, and do not necessarily represent those of my employer - WSO2 or anyone else for that matter. All trademarks acknowledged.

© 2007-2014 Dmitry Sotnikov

June 2007
« May   Jul »


Get every new post delivered to your Inbox.

Join 2,433 other followers

%d bloggers like this: