Skip to content

Latest commit

 

History

History
100 lines (71 loc) · 2.37 KB

Get-AzureADUserAppRoleAssignment.md

File metadata and controls

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

Get-AzureADUserAppRoleAssignment

SYNOPSIS

Get a user application role assignment.

SYNTAX

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

DESCRIPTION

EXAMPLES

Example 1: Get a user application role assignment

PS C:\> $UserId = (Get-AzureADUser -Top 1).ObjectId
Get-AzureADUserAppRoleAssignment -ObjectId $UserId

The first command gets the ID of an Azure AD user by using the Get-AzureADUser (./Get-AzureADUser.md)cmdlet. The command stores the value in the $UserId variable.

The second command gets a user application role assignment for the user in $UserId.

PARAMETERS

-All

If true, return all user application role assignments for this user. 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 user (as a UPN or ObjectId) in Azure Active Directory.

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-AzureADUserAppRoleAssignment to the Microsoft Graph PowerShell.

INPUTS

OUTPUTS

RELATED LINKS

Get-AzureADUser

New-AzureADUserAppRoleAssignment

Remove-AzureADUserAppRoleAssignment