Skip to main content

Get-MgApplicationAssignment

SYNOPSIS

Retrieves all Entra ID applications and their assignment types.

SYNTAX

Get-MgApplicationAssignment [[-ApplicationId] <String[]>] [-OnlyAssignedToAllUsers] [-ExportToExcel]
[-ProgressAction <ActionPreference>] [<CommonParameters>]

DESCRIPTION

This function returns a list of all Entra ID applications with their assignment information, identifying whether they are assigned to all users or have specific assignments.

EXAMPLES

EXAMPLE 1

$apps = Get-MgApplicationAssignment

EXAMPLE 2

$apps = Get-MgApplicationAssignment -ApplicationId "xxx", "yyy"

EXAMPLE 3

$apps = Get-MgApplicationAssignment -OnlyAssignedToAllUsers

EXAMPLE 4

Get-MgApplicationAssignment -ExportToExcel
Gets all applications and exports them to an Excel file

PARAMETERS

-ApplicationId

{{ Fill ApplicationId Description }}

Type: String[]
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-OnlyAssignedToAllUsers

{{ Fill OnlyAssignedToAllUsers Description }}

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-ExportToExcel

{{ Fill ExportToExcel Description }}

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-ProgressAction

{{ Fill ProgressAction Description }}

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
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.

INPUTS

OUTPUTS

NOTES