Forum Discussion
nabi04
Nov 27, 2020Brass Contributor
Is there a graph API equivalent for hiding enterprise app from end users in Azure AD?
I have found a way to set the user visibility to "no" using this powershell script:
Connect-AzureAD
$objectId = "<objectId>"
$servicePrincipal = Get-AzureADServicePrincipal -ObjectId $objectId
$tags = $servicePrincipal.tags
$tags += "HideApp"
Set-AzureADServicePrincipal -ObjectId $objectId -Tags $tags
I was wondering if there's an equivalent graph API endpoint/method for this? Thanks in advance!
That's simply adding a new tag, you can do it via the Graph API as PATCH operation: https://docs.microsoft.com/en-us/graph/api/application-update?view=graph-rest-1.0&tabs=http