|
| 1 | +--- |
| 2 | +external help file: Microsoft.Exchange.Management.RestApiClient.dll-Help.xml |
| 3 | +Module Name: ExchangeOnlineManagement |
| 4 | +online version: https://docs.microsoft.com/powershell/module/exchange/get-customnudgeassignment |
| 5 | +applicable: Exchange Online |
| 6 | +title: Get-CustomNudgeAssignment |
| 7 | +schema: 2.0.0 |
| 8 | +author: chrisda |
| 9 | +ms.author: chrisda |
| 10 | +ms.reviewer: shusun |
| 11 | +--- |
| 12 | + |
| 13 | +# Get-CustomNudgeAssignment |
| 14 | + |
| 15 | +## SYNOPSIS |
| 16 | +This cmdlet is available only in the Exchange Online PowerShell V2 module v2.0.6-Preview5 or later. For more information, see [About the Exchange Online PowerShell V2 module](https://docs.microsoft.com/powershell/exchange/exchange-online-powershell-v2). |
| 17 | + |
| 18 | +**Note**: The features that are associated with this cmdlet are currently in Preview, are not available in all organizations, and are subject to change. Access to the cmdlet does not guarantee access to the feature. |
| 19 | + |
| 20 | +Use the Get-CustomNudgeAssignment to view the assignments of Custom Nudges to users. Custom Nudges are shown in the Briefing email. |
| 21 | + |
| 22 | +For information about the parameter sets in the Syntax section below, see [Exchange cmdlet syntax](https://docs.microsoft.com/powershell/exchange/exchange-cmdlet-syntax). |
| 23 | + |
| 24 | +## SYNTAX |
| 25 | + |
| 26 | +``` |
| 27 | +Get-CustomNudgeAssignment [-AssigneeId <String>] [-NudgeName <String>] |
| 28 | + [-ResultSize <Unlimited>] |
| 29 | + [<CommonParameters>] |
| 30 | +``` |
| 31 | + |
| 32 | +## DESCRIPTION |
| 33 | +This cmdlet requires the .NET Framework 4.7.2 or later. To run this cmdlet, you need to be a member of one of the following roles in Azure Active Directory: |
| 34 | + |
| 35 | +- Global Administrator |
| 36 | +- Exchange Administrator |
| 37 | +- Insights Administrator |
| 38 | + |
| 39 | +To learn more about administrator role permissions in Azure Active Directory, see [Azure AD built-in roles](https://docs.microsoft.com/azure/active-directory/roles/permissions-reference). |
| 40 | + |
| 41 | +## EXAMPLES |
| 42 | + |
| 43 | +### Example 1 |
| 44 | +```powershell |
| 45 | +Get-CustomNudgeAssignment -NudgeName perfReviewNudge |
| 46 | +``` |
| 47 | + |
| 48 | +This example returns all assignments that contain the Custom Nudge named perfReviewNudge. |
| 49 | + |
| 50 | +### Example 2 |
| 51 | +```powershell |
| 52 | +Get-CustomNudgeAssignment -AssigneeId [email protected] |
| 53 | +``` |
| 54 | + |
| 55 | +This example returns all assignments that contain the user [email protected]. |
| 56 | + |
| 57 | +### Example 3 |
| 58 | +```powershell |
| 59 | +Get-CustomNudgeAssignment -NudgeName perfReviewNudge -AssigneeId [email protected] |
| 60 | +``` |
| 61 | + |
| 62 | +This example returns the StartTime and EndTime values for the assignment of the Custom Nudge named perfReviewNudge to the user [email protected]. |
| 63 | + |
| 64 | +## PARAMETERS |
| 65 | + |
| 66 | +### -AssigneeId |
| 67 | +The AssigneeId parameter specifies the email address of the user that you want to view. |
| 68 | + |
| 69 | +If you use this parameter without the NudgeName parameter, all Custom Nudges that are assigned to the user are returned. |
| 70 | + |
| 71 | +If you use this parameter with the NudgeName parameter, the StartDate and EndDate values of the assignment are returned. |
| 72 | + |
| 73 | +```yaml |
| 74 | +Type: String |
| 75 | +Parameter Sets: (All) |
| 76 | +Aliases: |
| 77 | +Applicable: Exchange Online |
| 78 | + |
| 79 | +Required: False |
| 80 | +Position: Named |
| 81 | +Default value: None |
| 82 | +Accept pipeline input: False |
| 83 | +Accept wildcard characters: False |
| 84 | +``` |
| 85 | +
|
| 86 | +### -NudgeName |
| 87 | +The NudgeName parameter filters the assignments by the name of the Custom Nudge. If the value contains spaces, enclose the value in quotation marks ("). |
| 88 | +
|
| 89 | +If you use this parameter without the AssigneeId parameter, all users who have the Custom Nudge assigned to them are returned. |
| 90 | +
|
| 91 | +If you use this parameter with the AssigneeId parameter, the StartDate and EndDate values of the assignment are returned. |
| 92 | +
|
| 93 | +```yaml |
| 94 | +Type: String |
| 95 | +Parameter Sets: (All) |
| 96 | +Aliases: |
| 97 | +Applicable: Exchange Online |
| 98 | + |
| 99 | +Required: False |
| 100 | +Position: Named |
| 101 | +Default value: None |
| 102 | +Accept pipeline input: False |
| 103 | +Accept wildcard characters: False |
| 104 | +``` |
| 105 | +
|
| 106 | +### -ResultSize |
| 107 | +This parameter is reserved for internal Microsoft use. |
| 108 | +
|
| 109 | +```yaml |
| 110 | +Type: Unlimited |
| 111 | +Parameter Sets: (All) |
| 112 | +Aliases: |
| 113 | +Applicable: Exchange Online |
| 114 | + |
| 115 | +Required: False |
| 116 | +Position: Named |
| 117 | +Default value: None |
| 118 | +Accept pipeline input: False |
| 119 | +Accept wildcard characters: False |
| 120 | +``` |
| 121 | +
|
| 122 | +### CommonParameters |
| 123 | +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). |
| 124 | +
|
| 125 | +## INPUTS |
| 126 | +
|
| 127 | +## OUTPUTS |
| 128 | +
|
| 129 | +## NOTES |
| 130 | +
|
| 131 | +## RELATED LINKS |
0 commit comments