< Back
Set-AdminPowerAppConnectorRoleAssignment
Post
NAME Set-AdminPowerAppConnectorRoleAssignment
SYNOPSIS
Sets permissions to the custom connectors.
SYNTAX
Set-AdminPowerAppConnectorRoleAssignment -ConnectorName <String> -EnvironmentName <String> -RoleName <String>
-PrincipalType <String> -PrincipalObjectId <String> [-ApiVersion <String>] [<CommonParameters>]
Set-AdminPowerAppConnectorRoleAssignment -ConnectorName <String> -EnvironmentName <String> -RoleName <String>
-PrincipalType <String> [-PrincipalObjectId <String>] [-ApiVersion <String>] [<CommonParameters>]
DESCRIPTION
The Set-AdminPowerAppConnectorRoleAssignment set up permission to custom connectors depending on parameters.
Use Get-Help Set-AdminPowerAppConnectorRoleAssignment -Examples for more detail.
PARAMETERS
-ConnectorName <String>
The custom connector's identifier.
Required? true
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-EnvironmentName <String>
The connectors's environment.
Required? true
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-RoleName <String>
Specifies the permission level given to the connector: CanView, CanViewWithShare, CanEdit. Sharing with the
entire tenant is only supported for CanView.
Required? true
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-PrincipalType <String>
Specifies the type of principal this connector is being shared with; a user, a security group, the entire
tenant.
Required? true
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-PrincipalObjectId <String>
If this connector is being shared with a user or security group principal, this field specified the ObjectId
for that principal. You can use the Get-UsersOrGroupsFromGraph API to look-up the ObjectId for a user or group
in Azure Active Directory.
Required? true
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:\\>Set-AdminPowerAppConnectorRoleAssignment -ConnectorName
shared_testapi.5f0629412a7d1fe83e.5f6f049093c9b7a698 -EnvironmentName 0fc02431-15fb-4563-a5ab-8211beb2a86f
-RoleName CanView -PrincipalType User -PrincipalObjectId a9f34b89-b7f2-48ef-a3ca-1c435bc655a0
Give the specified user CanView permissions to the connector with name
shared_testapi.5f0629412a7d1fe83e.5f6f049093c9b7a698
RELATED LINKS
SYNOPSIS
Sets permissions to the custom connectors.
SYNTAX
Set-AdminPowerAppConnectorRoleAssignment -ConnectorName <String> -EnvironmentName <String> -RoleName <String>
-PrincipalType <String> -PrincipalObjectId <String> [-ApiVersion <String>] [<CommonParameters>]
Set-AdminPowerAppConnectorRoleAssignment -ConnectorName <String> -EnvironmentName <String> -RoleName <String>
-PrincipalType <String> [-PrincipalObjectId <String>] [-ApiVersion <String>] [<CommonParameters>]
DESCRIPTION
The Set-AdminPowerAppConnectorRoleAssignment set up permission to custom connectors depending on parameters.
Use Get-Help Set-AdminPowerAppConnectorRoleAssignment -Examples for more detail.
PARAMETERS
-ConnectorName <String>
The custom connector's identifier.
Required? true
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-EnvironmentName <String>
The connectors's environment.
Required? true
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-RoleName <String>
Specifies the permission level given to the connector: CanView, CanViewWithShare, CanEdit. Sharing with the
entire tenant is only supported for CanView.
Required? true
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-PrincipalType <String>
Specifies the type of principal this connector is being shared with; a user, a security group, the entire
tenant.
Required? true
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-PrincipalObjectId <String>
If this connector is being shared with a user or security group principal, this field specified the ObjectId
for that principal. You can use the Get-UsersOrGroupsFromGraph API to look-up the ObjectId for a user or group
in Azure Active Directory.
Required? true
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:\\>Set-AdminPowerAppConnectorRoleAssignment -ConnectorName
shared_testapi.5f0629412a7d1fe83e.5f6f049093c9b7a698 -EnvironmentName 0fc02431-15fb-4563-a5ab-8211beb2a86f
-RoleName CanView -PrincipalType User -PrincipalObjectId a9f34b89-b7f2-48ef-a3ca-1c435bc655a0
Give the specified user CanView permissions to the connector with name
shared_testapi.5f0629412a7d1fe83e.5f6f049093c9b7a698
RELATED LINKS