Forum Discussion
Samir Raut
Apr 09, 2019Copper Contributor
Is there a graph API equivalent for un hiding user from GAL for Azure AD B2B user
I am aware of PowerShell Script to unhide user from GAL by doing so (example):
Set-AzureADUser -GivenName $first -Surname $last -JobTitle $title -Department $dept -ShowInAddressList $true
However, we are interested in doing this using the REST API. Is that possible? Not sure if it matters but in our case, this is for a set of Azure AD B2B users.
- headburghIron Contributor
You could use the beta API for Azure Active Directory B2B for this.
https://graph.microsoft.com/beta/users/{id of user}
PATCH
"showInAddressList": truePlease note, as it is in Beta it could be hazardous to take a production dependency on /beta APIs.
Regards,
Viktor- DavidLundellCopper Contributor
headburgh This does not work as there is a bug in the API