Share via

Add security group to application

Kashif Aslam 1 Reputation point
2020-11-12T20:09:08.247+00:00

Hi Help,

I would like assign the security group to an enterprise application Zoho, since we don’t Premium license, so it should be through Powershell only.

Please advise

$username = "zohosso"

$app_name = "Zohonesr"

$app_role_name = "Default Access"

Get-AzureADGroup -ObjectId 8d92219f-5dca-4b9f-be93-0424aae732cd

$sp = Get-AzureADServicePrincipal -Filter "displayName eq '$app_name'"

$appRole = $sp.AppRoles | Where-Object { $_.DisplayName -eq $app_role_name }

New-AzureADGroupAppRoleAssignment -ObjectId 8d92219f-5dca-4b9f-be93-0424aae732cd -PrincipalId 8d92219f-5dca-4b9f-be93-0424aae732cd -ResourceId $sp.ObjectId -Id $appRole.Id

But this is not working

Microsoft Security | Microsoft Entra | Microsoft Entra ID

1 answer

Sort by: Most helpful
  1. Alfredo Revilla - Upwork Top Talent | IAM SWE SWA 27,551 Reputation points Moderator
    2020-11-12T21:29:10.047+00:00

    Hi @Kashif Aslam , this is not possible without a premium license, even trough powershell.

    Let us know if this answer was helpful to you. If so, please remember to mark it as the answer so that others in the community with similar questions can more easily find a solution.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.