Automation

 View Only
  • 1.  Query vCenter account (user) E-Mail via vSphere API

    Posted Jun 24, 2020 12:58 PM

    Hi *,

    if you create a user account using the vSphere Client you can also enter an E-Mail address for that user.

    I would like to query the E-Mail from a user account. Normally I use PowerCLI to get things done and I tried

    Get-VIAccount -Domain vsphere.local -Id testuser

    The cmdlet returns Id, Server, Description , Domain, Name, Uid and ExtensionData

    But unfortunately it dies not return the user's E-Mail address, even ExtensionData does not contain it.

    Any ideas?

    Thanks



  • 2.  RE: Query vCenter account (user) E-Mail via vSphere API

    Broadcom Employee
    Posted Jun 24, 2020 01:07 PM

    Moderator: Thread moved to the PowerCLI area - if it is NOT possible via PowerCLI I can move the thread again to a more suitable area.



  • 3.  RE: Query vCenter account (user) E-Mail via vSphere API

    Posted Jun 24, 2020 01:49 PM

    I'm afraid that all SSO related API are private and not exposed through the PowerCLI framework.



  • 4.  RE: Query vCenter account (user) E-Mail via vSphere API

    Posted Jun 25, 2020 09:59 AM

    Hi. Thanks for your help.

    But I wonder why I can query all user information I can see in the vSphere Client, but not the E-Mail address ;-)

    Maybe there is another way besides PowerCLI to get the information?



  • 5.  RE: Query vCenter account (user) E-Mail via vSphere API

    Posted Jun 25, 2020 10:41 AM

    Not that I know of.
    If you find a tool or API, please let me know.

    This has been on my list for a long time.