-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get-AzAdGroupMember -select doesn't return user properties #19728
Comments
@VeryEarly , please help to look into it. |
@plmcgrn Can you please trying upgrading the modules as shown below? |
Thank you for your feedback. This has been routed to the support team for assistance. |
Az.Account updates to 2.10.2 but Az.Resources updates to 6.2.0 not 6.3.0, for me.
Regardless, retrying gives same results.
The results do not contain givenName or country. |
@plmcgrn Its actually as designed. You can use this command as a work around to get the GivenName and country |
Hi @plmcgrn. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text “ |
Hi @plmcgrn, since you haven’t asked that we “ |
@RakeshMohanMSFT I don't understand this. If this is as designed, then why does Get-AzGroupMember have "-Select" as a parameter? Will the parameter be removed from the cmdlet? Also, your example is |
/unresolve |
@PSdasAndi @plmcgrn Let me involve the service team to address this concern. |
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @adamedx. Issue DetailsDescriptionWhen using This is the same as Issue #17503 , which was auto-closed without a fix. The MS Graph API being used is a beta API that includes all this data, so it should be supported. Also, I noted that the comment linking to the supported properties isn't accurate. If I do Issue script & Debug output$id = 'redacted'
$userProps = "id", "displayName", "mail"
$users = Get-AzADGroupMember -GroupObjectId $id -Select $userProps
Can't provide output without redacting to the point of irrelevance. I confirmed that all 3 properties were part of the response from the Graph API. Environment dataName Value
---- -----
PSVersion 7.2.0
PSEdition Core
GitCommitId 7.2.0
OS Darwin 21.6.0 Darwin Kernel Version 21.6.0: Mon Aug 22 20:20:05 PDT 2022; root:xnu-8020.140.49~2/RELEASE_ARM64_T8…
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0 Module versionsModuleType Version PreRelease Name ExportedCommands
---------- ------- ---------- ---- ----------------
Script 2.10.1 Az.Accounts
Script 6.2.0 Az.Resources Error outputNo relevant errors returned
|
@RakeshMohanMSFT , not sure how I can help. Do you know who owns this command? I can certainly give advice as to how to debug the request being made to the API, but I have not made contributions to this or any Azure modules. Feel free to ping me out of badn @RakeshMohanMSFT . |
Description
When using
Get-AzAdGroupMember
with the-select
parameter, the returned results do not contain the user properties requested. When I test this using the beta API directly, it does return the fields properly.This is the same as Issue #17503 , which was auto-closed without a fix. The MS Graph API being used is a beta API that includes all this data, so it should be supported. Also, I noted that the comment linking to the supported properties isn't accurate. If I do
-Select mail
, I get no data from the cmdlet even though that property is in the raw API response.Issue script & Debug output
Environment data
Module versions
Error output
The text was updated successfully, but these errors were encountered: