Skip to main content

Connect-MsIdEntraAsUser

SYNOPSIS

Connects to Microsoft Graph as a user with required scopes and validates admin privileges

SYNTAX

Connect-MsIdEntraAsUser [[-Scopes] <String[]>] [-ProgressAction <ActionPreference>] [<CommonParameters>]

DESCRIPTION

Establishes a connection to Microsoft Graph with the necessary permissions for Agent Identity operations and validates that the authenticated user has Global Admin or Global Reader role

EXAMPLES

EXAMPLE 1

Connect-MsIdEntraAsUser

EXAMPLE 2

Connect-MsIdEntraAsUser -Scopes @('AgentIdentityBlueprint.Create', 'User.ReadWrite.All')

PARAMETERS

-Scopes

Array of scopes to request. Defaults to AgentIdentityBlueprint.Create plus Directory.Read.All for role validation

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

Required: False
Position: 1
Default value: @('AgentIdentityBlueprint.Create', 'AgentIdentityBlueprintPrincipal.Create', 'AppRoleAssignment.ReadWrite.All', 'Application.ReadWrite.All', 'User.ReadWrite.All', 'AgentIdentityBlueprint.ReadWrite.All', 'AgentIdentityBlueprint.AddRemoveCreds.All')
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