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: 137
      Replies: 285
      Points: 433
      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 months, 3 weeks ago by Jeff Taylor.
      • This topic was modified 2 months, 3 weeks ago by Jeff Taylor.
      • This topic was modified 2 months, 3 weeks ago by Jeff Taylor.
      • This topic was modified 2 months, 3 weeks ago by grokkit.
      • This topic was modified 2 months, 3 weeks ago by grokkit.
    • #253949
      Senior Moderator
      Topics: 9
      Replies: 1408
      Points: 5,227
      Helping Hand
      Rank: Community MVP

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

      and

      -Properties $Properties | Format-List *

      • This reply was modified 2 months, 3 weeks ago by kvprasoon. Reason: Post correction
      • #254165
        Participant
        Topics: 137
        Replies: 285
        Points: 433
        Rank: Contributor

        kvprasson Neither exposed values other than gidNumber

    • #254012
      Participant
      Topics: 8
      Replies: 669
      Points: 2,631
      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: 1408
      Points: 5,227
      Helping Hand
      Rank: Community MVP

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

    • #254174
      Participant
      Topics: 137
      Replies: 285
      Points: 433
      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: 16
      Replies: 1842
      Points: 3,514
      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: 137
      Replies: 285
      Points: 433
      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.