Skip to content

Latest commit

 

History

History
97 lines (70 loc) · 2.63 KB

Get-AzureADServiceAppRoleAssignedTo.md

File metadata and controls

97 lines (70 loc) · 2.63 KB
external help file Module Name online version schema
Microsoft.Open.AzureAD16.Graph.PowerShell.dll-Help.xml
AzureAD
2.0.0

Get-AzureADServiceAppRoleAssignedTo

SYNOPSIS

Gets app role assignments for this app or service, granted to users, groups and other service principals.

SYNTAX

Get-AzureADServiceAppRoleAssignedTo -ObjectId <String> [-All <Boolean>] [-Top <Int32>] [<CommonParameters>]

DESCRIPTION

The Get-AzureADServiceAppRoleAssignedTo cmdlet gets app role assignments for this app or service, granted to users, groups and other service principals.

EXAMPLES

Example 1

PS C:\> $ServicePrincipalId = (Get-AzureADServicePrincipal -Top 1).ObjectId
PS C:\> Get-AzureADServiceAppRoleAssignedTo -ObjectId $ServicePrincipalId

The first command gets the ID of a service principal and stores it in the $ServicePrincipalId variable.

The second command gets the app role assignments for the service principal granted to users, groups and other service principals.

PARAMETERS

-All

If true, return all application role assignments. If false, return the number of objects specified by the Top parameter.

Type: Boolean
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False

-ObjectId

Specifies the ID of a service principal in Azure AD.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False

-Top

Specifies the maximum number of records to return.

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

NOTES

See the migration guide for Get-AzureADServiceAppRoleAssignedTo to the Microsoft Graph PowerShell.

INPUTS

System.String

System.Nullable`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] System.Nullable`1[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]

OUTPUTS

System.Object

RELATED LINKS