< Back

Get-AdminPowerAppConnectionRoleAssignment

Sat Jan 18, 2020 3:46 pm

NAME Get-AdminPowerAppConnectionRoleAssignment



SYNOPSIS

Returns the connection role assignments for a user or a connection. Owner role assignments cannot be deleted

without deleting the connection resource.





SYNTAX

Get-AdminPowerAppConnectionRoleAssignment [[-ConnectionName] <String>] [-ConnectorName <String>] [-EnvironmentName

<String>] [-PrincipalObjectId <String>] [-ApiVersion <String>] [<CommonParameters>]





DESCRIPTION

The Get-AdminPowerAppConnectionRoleAssignment functions returns all roles assignments for an connection or all

connection roles assignments for a user (across all of their connections). A connection's role assignments

determine which users have access to the connection for using or building apps and flows and with which permission

level (CanUse, CanUseAndShare) .

Use Get-Help Get-AdminPowerAppConnectionRoleAssignment -Examples for more detail.





PARAMETERS

-ConnectionName <String>

The connection identifier.



Required? false

Position? 1

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-ConnectorName <String>

The connection's connector identifier.



Required? false

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-EnvironmentName <String>

The connections's environment.



Required? false

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-PrincipalObjectId <String>

The objectId of a user or group, if specified, this function will only return role assignments for that user

or group.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ApiVersion <String>



Required? false

Position? named

Default value 2017-06-01

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Get-AdminPowerAppConnectionRoleAssignment



Returns all connection role assignments for the calling user.









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Get-AdminPowerAppConnectionRoleAssignment -ConnectionName 3b4b9592607147258a4f2fb33517e97a -ConnectorName

shared_sharepointonline -EnvironmentName ee1eef10-ba55-440b-a009-ce379f86e20c



Returns all role assignments for the connection with name 3b4b9592607147258a4f2fb33517e97ain environment with name

ee1eef10-ba55-440b-a009-ce379f86e20c for the connector named shared_sharepointonline









-------------------------- EXAMPLE 3 --------------------------



PS C:\\>Get-AdminPowerAppConnectionRoleAssignment -ConnectionName 3b4b9592607147258a4f2fb33517e97a -ConnectorName

shared_sharepointonline -EnvironmentName ee1eef10-ba55-440b-a009-ce379f86e20c -PrincipalObjectId

3c2f7648-ad60-4871-91cb-b77d7ef3c239



Returns all role assignments for the user, or group with an object of 3c2f7648-ad60-4871-91cb-b77d7ef3c239 for the

connection with name 3b4b9592607147258a4f2fb33517e97ain environment with name ee1eef10-ba55-440b-a009-ce379f86e20c

for the connector named shared_sharepointonline











RELATED LINKS