|
| 1 | +--- |
| 2 | +applicable: Exchange Online |
| 3 | +author: chrisda |
| 4 | +external help file: Microsoft.Exchange.Management.RestApiClient.dll-Help.xml |
| 5 | +Locale: en-US |
| 6 | +Module Name: ExchangePowerShell |
| 7 | +ms.author: chrisda |
| 8 | +online version: https://learn.microsoft.com/powershell/module/exchange/remove-workforceinsightsdelegationaccess |
| 9 | +schema: 2.0.0 |
| 10 | +title: Remove-WorkforceInsightsDelegationAccess |
| 11 | +--- |
| 12 | + |
| 13 | +# Remove-WorkforceInsightsDelegationAccess |
| 14 | + |
| 15 | +## SYNOPSIS |
| 16 | +This cmdlet is available only in the Exchange Online PowerShell module version 3.9.2-Preview1 or later. For more information, see [About the Exchange Online PowerShell module](https://aka.ms/exov3-module). |
| 17 | + |
| 18 | +Use the Remove-WorkforceInsightsDelegationAccess cmdlet to remove delegate access from the specified account (the delegate) so they can't view organizational insights like the leader (the delegator). |
| 19 | + |
| 20 | +For information about the parameter sets in the Syntax section below, see [Exchange cmdlet syntax](https://learn.microsoft.com/powershell/exchange/exchange-cmdlet-syntax). |
| 21 | + |
| 22 | +## SYNTAX |
| 23 | + |
| 24 | +``` |
| 25 | +Remove-WorkforceInsightsDelegationAccess -Delegate <Guid> -Delegator <Guid> |
| 26 | + [-ResultSize <Unlimited>] [<CommonParameters>] |
| 27 | +``` |
| 28 | + |
| 29 | +## DESCRIPTION |
| 30 | +Use the Get-WorkforceInsightsDelegationAccess cmdlet to find the Microsoft Entra ObjectId values of delegate accounts that were given the capabilities of delegator accounts. |
| 31 | + |
| 32 | +To run this cmdlet, you need to be a member of one of the following role groups in Microsoft Entra ID in the destination organization: |
| 33 | + |
| 34 | +- Global Administrator |
| 35 | +- AI Administrator |
| 36 | + |
| 37 | +> [!IMPORTANT] |
| 38 | +> Microsoft strongly advocates for the principle of least privilege. Assigning accounts only the minimum permissions necessary to perform their tasks helps reduce security risks and strengthens your organization's overall protection. Global Administrator is a highly privileged role that you typically limit to emergency scenarios or when you can't use a different role. |
| 39 | +
|
| 40 | +## EXAMPLES |
| 41 | + |
| 42 | +### Example 1 |
| 43 | +```powershell |
| 44 | +Remove-WorkforceInsightsDelegationAccess -Delegate 8bd05978-667c-4eda-a029-291ea8930677 -Delegator a5f5dbca-8cc8-4a36-bbfc-9b8947b4eb60 |
| 45 | +``` |
| 46 | + |
| 47 | +This example removes the workforce insights delegation access capability of the specified delegator account from the specified delegate account. |
| 48 | + |
| 49 | +## PARAMETERS |
| 50 | + |
| 51 | +### -Delegate |
| 52 | + |
| 53 | +> Applicable: Exchange Online |
| 54 | +
|
| 55 | +The Delegate parameter specifies the account that can view organizational insights like the leader (the account specified by the Delegator account). |
| 56 | + |
| 57 | +A valid value for this parameter is the Microsoft Entra ObjectId value of the delegate account. Use the [Get-MgUser](https://learn.microsoft.com/powershell/module/microsoft.graph.users/get-mguser) cmdlet in Microsoft Graph PowerShell to find this value. |
| 58 | + |
| 59 | +```yaml |
| 60 | +Type: Guid |
| 61 | +Parameter Sets: (All) |
| 62 | +Aliases: |
| 63 | + |
| 64 | +Required: True |
| 65 | +Position: Named |
| 66 | +Default value: None |
| 67 | +Accept pipeline input: False |
| 68 | +Accept wildcard characters: False |
| 69 | +``` |
| 70 | +
|
| 71 | +### -Delegator |
| 72 | +
|
| 73 | +> Applicable: Exchange Online |
| 74 | +
|
| 75 | +The Delegator parameter specifies the account of the leader that can view organizational insights. This capability is delegated to the account specified by the Delegate parameter. |
| 76 | +
|
| 77 | +A valid value for this parameter is the ObjectID value of the delegator account. Use the [Get-MgUser](https://learn.microsoft.com/powershell/module/microsoft.graph.users/get-mguser) cmdlet in Microsoft Graph PowerShell to find this value. |
| 78 | +
|
| 79 | +```yaml |
| 80 | +Type: Guid |
| 81 | +Parameter Sets: (All) |
| 82 | +Aliases: |
| 83 | + |
| 84 | +Required: True |
| 85 | +Position: Named |
| 86 | +Default value: None |
| 87 | +Accept pipeline input: False |
| 88 | +Accept wildcard characters: False |
| 89 | +``` |
| 90 | +
|
| 91 | +### -ResultSize |
| 92 | +
|
| 93 | +> Applicable: Exchange Online |
| 94 | +
|
| 95 | +This parameter is reserved for internal Microsoft use. |
| 96 | +
|
| 97 | +```yaml |
| 98 | +Type: Unlimited |
| 99 | +Parameter Sets: (All) |
| 100 | +Aliases: |
| 101 | + |
| 102 | +Required: False |
| 103 | +Position: Named |
| 104 | +Default value: None |
| 105 | +Accept pipeline input: False |
| 106 | +Accept wildcard characters: False |
| 107 | +``` |
| 108 | +
|
| 109 | +### CommonParameters |
| 110 | +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](https://go.microsoft.com/fwlink/p/?LinkID=113216). |
| 111 | +
|
| 112 | +## INPUTS |
| 113 | +
|
| 114 | +## OUTPUTS |
| 115 | +
|
| 116 | +## NOTES |
| 117 | +
|
| 118 | +## RELATED LINKS |
0 commit comments