Can’t expose Extension Attributes for a User

Welcome Forums General PowerShell Q&A Can’t expose Extension Attributes for a User

Viewing 6 reply threads
  • Author
    Posts
    • #253826
      Participant
      Topics: 124
      Replies: 269
      Points: 305
      Rank: Contributor

      Seeking to Get extended Attributes and tried this:

      …but many of those come up empty. I do have values in them, however.

      Why are they not retrieving?

      • This topic was modified 2 weeks, 4 days ago by Jeff Taylor.
      • This topic was modified 2 weeks, 4 days ago by Jeff Taylor.
      • This topic was modified 2 weeks, 4 days ago by Jeff Taylor.
      • This topic was modified 2 weeks, 4 days ago by grokkit.
      • This topic was modified 2 weeks, 4 days ago by grokkit.
    • #253949
      Senior Moderator
      Topics: 9
      Replies: 1309
      Points: 4,781
      Helping Hand
      Rank: Community Hero

      Strange, Can you try -Properties * | Select $Properties

      and

      -Properties $Properties | Format-List *

      • This reply was modified 2 weeks, 4 days ago by kvprasoon. Reason: Post correction
      • #254165
        Participant
        Topics: 124
        Replies: 269
        Points: 305
        Rank: Contributor

        kvprasson Neither exposed values other than gidNumber

    • #254012
      Participant
      Topics: 7
      Replies: 557
      Points: 2,122
      Helping Hand
      Rank: Community Hero

      It should work fine. Are you getting nothing at all back or just empty properties?

    • #254171
      Senior Moderator
      Topics: 9
      Replies: 1309
      Points: 4,781
      Helping Hand
      Rank: Community Hero

      Looks like that particular account doesn’t have value for those properties.

    • #254174
      Participant
      Topics: 124
      Replies: 269
      Points: 305
      Rank: Contributor

      The values are certainly there (triple checked in dsa.msc) just not all showing up in Powershell.

       

      gidNumber :
      loginShell :
      msSFU30Name :
      msSFU30NisDomain :
      uid : {MyServiceAccount}
      uidNumber :
      UnixHomeDirectory :

    • #254183
      Participant
      Topics: 13
      Replies: 1753
      Points: 3,136
      Helping Hand
      Rank: Community Hero

      Are you sure those are the actual property names vs a friendly name or something? Maybe look at ADSIEdit.msc, but properties * should return all properties in AD for an object.

    • #254186
      Participant
      Topics: 124
      Replies: 269
      Points: 305
      Rank: Contributor

      same names in ADSIEdit (attributes) for the User account being queried. We do have SolidCore running and perhaps it restricting PS in someway. Just spitballing here.

Viewing 6 reply threads
  • You must be logged in to reply to this topic.