AzureAd – GSuite assinar usuarios

#add $sp = Get-AzureADServicePrincipal -Filter “displayName eq ‘GSUITE ADM'” $appRole = $sp.AppRoles | Where-Object { $_.DisplayName -eq ‘Default Organization’ } $user = Get-AzureADUser -ObjectId “eduardo.teste@pinhais.pr.gov.br” New-AzureADUserAppRoleAssignment -ObjectId $user.ObjectId -PrincipalId $user.ObjectId -ResourceId $sp.ObjectId -Id $appRole.Id #remove $obj = Get-AzureADServiceAppRoleAssignment -ObjectId 08c7b728-1397-4ffb-8683-139f61cbf54c | Where-Object { $_.PrincipalDisplayName -eq “Eduardo Teste” } Remove-AzureADServiceAppRoleAssignment -ObjectId 08c7b728-1397-4ffb-8683-139f61cbf54c -AppRoleAssignmentId $obj.ObjectId #consulta Get-AzureADServiceAppRoleAssignment
Continue reading AzureAd – GSuite assinar usuarios