Is there a graph API equivalent for hiding enterprise app from end users in Azure AD?

%3CLINGO-SUB%20id%3D%22lingo-sub-1935386%22%20slang%3D%22en-US%22%3EIs%20there%20a%20graph%20API%20equivalent%20for%20hiding%20enterprise%20app%20from%20end%20users%20in%20Azure%20AD%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1935386%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20found%20a%20way%20to%20set%20the%20user%20visibility%20to%20%22no%22%20using%20this%20powershell%20script%3A%3C%2FP%3E%3CP%3EConnect-AzureAD%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%24objectId%20%3D%20%22%3COBJECTID%3E%22%3C%2FOBJECTID%3E%3C%2FP%3E%3CP%3E%24servicePrincipal%20%3D%20Get-AzureADServicePrincipal%20-ObjectId%20%24objectId%3C%2FP%3E%3CP%3E%24tags%20%3D%20%24servicePrincipal.tags%3C%2FP%3E%3CP%3E%24tags%20%2B%3D%20%22HideApp%22%3C%2FP%3E%3CP%3ESet-AzureADServicePrincipal%20-ObjectId%20%24objectId%20-Tags%20%24tags%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20was%20wondering%20if%20there's%20an%20equivalent%20graph%20API%20endpoint%2Fmethod%20for%20this%3F%20Thanks%20in%20advance!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1935386%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20AD%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EEnterprise%20Apps%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Contributor

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!

1 Reply