Apr 08 2019
05:21 PM
- last edited on
Jan 14 2022
04:46 PM
by
TechCommunityAP
Apr 08 2019
05:21 PM
- last edited on
Jan 14 2022
04:46 PM
by
TechCommunityAP
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.
Jan 02 2020 05:33 AM - edited Jan 02 2020 05:36 AM
You could use the beta API for Azure Active Directory B2B for this.
https://graph.microsoft.com/beta/users/{id of user}
PATCH
"showInAddressList": true
Please note, as it is in Beta it could be hazardous to take a production dependency on /beta APIs.
Regards,
Viktor
Oct 23 2023 03:27 PM
@headburgh This does not work as there is a bug in the API