Skip to content

Commit 203f70c

Browse files
authored
Merge pull request #5119 from pnp/copilot/fix-issue-in-code
Fix systematic spelling error: "Priviledged" → "Privileged" in PIM cmdlets
2 parents 5d49ffc + aa60f1a commit 203f70c

17 files changed

+86
-82
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
4646
- Fix `Get-PnPTenantRestrictedSearchMode` throwing an error in some cases [#5042](https://github.com/pnp/powershell/pull/5042)
4747
- Fixed issues with `Get-PnPTenantInfo`, `Set-PnPList`, `Remove-PnPSiteSensitivityLabel`, `Set-PnPSiteSensitivityLabel`, `Send-PnPMail` and `Set-PnPWebHeader` cmdlets returning an error [#5059](https://github.com/pnp/powershell/pull/5059)
4848
- Fixed issue with `Get-PnPChangelog -Nightly` throwing an error [#5070](https://github.com/pnp/powershell/pull/5070)
49+
- Fixed spelling errors in Privileged Identity Management cmdlets: renamed `Get-PnPPriviledgedIdentityManagementRole`, `Get-PnPPriviledgedIdentityManagementEligibleAssignment`, and `Enable-PnPPriviledgedIdentityManagement` to use correct spelling "Privileged". Old cmdlet names remain functional as aliases for backward compatibility. [#5119](https://github.com/pnp/powershell/pull/5119)
4950

5051
### Removed
5152

@@ -86,7 +87,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
8687
- Added tab completers for all cmdlets using a ListPipeBind parameter (e.g. `Get-PnPList -Identity`), all cmdlets using a FieldPipeBind parameter (e.g. `Get-PnPField -Identity`), `Get-PnPPropertyBag`, ContentType related cmdlets (`Get-PnPContentType` etc.) and Page related (`Get-PnPPage` etc.) cmdlets. The argument lookup will timeout after 2 seconds. This value can controlled by setting an environment variables called "PNPPSCOMPLETERTIMEOUT" and set the value to a number specifying milliseconds (e.g. 2000 is 2 seconds). If you want to disable the completer functionality on tabs, set the timeout value to 0 (zero).
8788
- Added `Reset-PnPDocumentID` cmdlet to request resetting the document ID for a document [#4238](https://github.com/pnp/powershell/pull/4238)
8889
- Added `Reset-PnPDocumentID` cmdlet to request resetting the document IDs for all documents in a library using a specific content type [#4755](https://github.com/pnp/powershell/pull/4755)
89-
- Added `Get-PnPPriviledgedIdentityManagementEligibleAssignment`, `Get-PnPPriviledgedIdentityManagementRole` and `Enable-PnPPriviledgedIdentityManagement` cmdlets to allow scripting of enabling Privileged Identity Management roles for a user [#4039](https://github.com/pnp/powershell/pull/4039)
90+
- Added `Get-PnPPrivilegedIdentityManagementEligibleAssignment`, `Get-PnPPrivilegedIdentityManagementRole` and `Enable-PnPPrivilegedIdentityManagement` cmdlets to allow scripting of enabling Privileged Identity Management roles for a user [#4039](https://github.com/pnp/powershell/pull/4039)
9091
- Added `Add-PnPTenantRestrictedSearchAllowedList` which allows setting up a list of allowed URLs for Restricted SharePoint Search [#3993](https://github.com/pnp/powershell/pull/3993)
9192
- Added optional `-IsCopilotSearchable` to `Add-PnPOrgAssetsLibrary` which allows for an organizational assets library to be accessible to Microsoft 365 CoPilot for searching corporate images [#4254](https://github.com/pnp/powershell/pull/4254)
9293
- Added `Set-PnPOrgAssetsLibrary` cmdlet which allows for updating the settings of an existing organizational assets library [#4254](https://github.com/pnp/powershell/pull/4254)

documentation/Enable-PnPPriviledgedIdentityManagement.md renamed to documentation/Enable-PnPPrivilegedIdentityManagement.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
Module Name: PnP.PowerShell
33
schema: 2.0.0
44
applicable: SharePoint Online
5-
online version: https://pnp.github.io/powershell/cmdlets/Enable-PnPPriviledgedIdentityManagement.html
5+
online version: https://pnp.github.io/powershell/cmdlets/Enable-PnPPrivilegedIdentityManagement.html
66
external help file: PnP.PowerShell.dll-Help.xml
7-
title: Enable-PnPPriviledgedIdentityManagement
7+
title: Enable-PnPPrivilegedIdentityManagement
88
---
99

10-
# Enable-PnPPriviledgedIdentityManagement
10+
# Enable-PnPPrivilegedIdentityManagement
1111

1212
## SYNOPSIS
1313

@@ -22,19 +22,19 @@ Temporarily enables a Privileged Identity Management role for a user
2222
### By Role Name And Principal
2323

2424
```powershell
25-
Enable-PnPPriviledgedIdentityManagement -Role <PriviledgedIdentityManagementRolePipeBind> [-PrincipalId <Guid>] [-Justification <string>] [-StartAt <DateTime>] [-ExpireInHours <short>] [-Connection <PnPConnection>]
25+
Enable-PnPPrivilegedIdentityManagement -Role <PrivilegedIdentityManagementRolePipeBind> [-PrincipalId <Guid>] [-Justification <string>] [-StartAt <DateTime>] [-ExpireInHours <short>] [-Connection <PnPConnection>]
2626
```
2727

2828
### By Role Name And User
2929

3030
```powershell
31-
Enable-PnPPriviledgedIdentityManagement -Role <PriviledgedIdentityManagementRolePipeBind> -User <AzureADUserPipeBind> [-Justification <string>] [-StartAt <DateTime>] [-ExpireInHours <short>] [-Connection <PnPConnection>]
31+
Enable-PnPPrivilegedIdentityManagement -Role <PrivilegedIdentityManagementRolePipeBind> -User <AzureADUserPipeBind> [-Justification <string>] [-StartAt <DateTime>] [-ExpireInHours <short>] [-Connection <PnPConnection>]
3232
```
3333

3434
### By Eligible Role Assignment
3535

3636
```powershell
37-
Enable-PnPPriviledgedIdentityManagement -EligibleAssignment <PriviledgedIdentityManagementRolePipeBind> [-Justification <string>] [-StartAt <DateTime>] [-ExpireInHours <short>] [-Connection <PnPConnection>]
37+
Enable-PnPPrivilegedIdentityManagement -EligibleAssignment <PrivilegedIdentityManagementRolePipeBind> [-Justification <string>] [-StartAt <DateTime>] [-ExpireInHours <short>] [-Connection <PnPConnection>]
3838
```
3939

4040
## DESCRIPTION
@@ -44,28 +44,28 @@ Temporarily enables a Privileged Identity Management role for the provided allow
4444

4545
### Example 1
4646
```powershell
47-
Enable-PnPPriviledgedIdentityManagement -Role "Global Administrator"
47+
Enable-PnPPrivilegedIdentityManagement -Role "Global Administrator"
4848
```
4949

5050
Enables the global administrator role for the current user through Privileged Identity Management starting immediately and expiring in 1 hour
5151

5252
### Example 2
5353
```powershell
54-
Enable-PnPPriviledgedIdentityManagement -Role "Global Administrator" -Justification "Just because"
54+
Enable-PnPPrivilegedIdentityManagement -Role "Global Administrator" -Justification "Just because"
5555
```
5656

5757
Enables the global administrator role for the current user through Privileged Identity Management starting immediately and expiring in 1 hour, adding the justification provided to be logged as the reason for the elevation of rights
5858

5959
### Example 3
6060
```powershell
61-
Enable-PnPPriviledgedIdentityManagement -Role "Global Administrator" -Justification "Just because" -StartAt (Get-Date).AddHours(2) -ExpireInHours 2
61+
Enable-PnPPrivilegedIdentityManagement -Role "Global Administrator" -Justification "Just because" -StartAt (Get-Date).AddHours(2) -ExpireInHours 2
6262
```
6363

6464
Enables the global administrator role for the current user through Privileged Identity Management starting in 2 hours from now and expiring 2 hours thereafter, adding the justification provided to be logged as the reason for the elevation of rights
6565

6666
### Example 4
6767
```powershell
68-
Enable-PnPPriviledgedIdentityManagement -Role "Global Administrator" -User "someone@contoso.onmicrosoft.com"
68+
Enable-PnPPrivilegedIdentityManagement -Role "Global Administrator" -User "someone@contoso.onmicrosoft.com"
6969
```
7070

7171
Enables the global administrator role for the provided user through Privileged Identity Management starting immediately and expiring in 1 hour
@@ -134,10 +134,10 @@ Accept wildcard characters: False
134134
```
135135
136136
### -Role
137-
The Id, name or instance of a role to elevate the current user to. Use `Get-PnPPriviledgedIdentityManagementRole` to retrieve the available roles.
137+
The Id, name or instance of a role to elevate the current user to. Use `Get-PnPPrivilegedIdentityManagementRole` to retrieve the available roles.
138138

139139
```yaml
140-
Type: PriviledgedIdentityManagementRolePipeBind
140+
Type: PrivilegedIdentityManagementRolePipeBind
141141
Parameter Sets: By Role Name And Principal, By Role Name And User
142142
Aliases:
143143

documentation/Get-PnPPriviledgedIdentityManagementEligibleAssignment.md renamed to documentation/Get-PnPPrivilegedIdentityManagementEligibleAssignment.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
Module Name: PnP.PowerShell
33
schema: 2.0.0
44
applicable: SharePoint Online
5-
online version: https://pnp.github.io/powershell/cmdlets/Get-PnPPriviledgedIdentityManagementEligibleAssignment.html
5+
online version: https://pnp.github.io/powershell/cmdlets/Get-PnPPrivilegedIdentityManagementEligibleAssignment.html
66
external help file: PnP.PowerShell.dll-Help.xml
7-
title: Get-PnPPriviledgedIdentityManagementEligibleAssignment
7+
title: Get-PnPPrivilegedIdentityManagementEligibleAssignment
88
---
99

10-
# Get-PnPPriviledgedIdentityManagementEligibleAssignment
10+
# Get-PnPPrivilegedIdentityManagementEligibleAssignment
1111

1212
## SYNOPSIS
1313

@@ -20,7 +20,7 @@ Retrieve the available Privileged Identity Management eligibility assignment rol
2020
## SYNTAX
2121

2222
```powershell
23-
Get-PnPPriviledgedIdentityManagementEligibleAssignment [-Identity <PriviledgedIdentityManagementRoleEligibilitySchedulePipeBind>] [-Connection <PnPConnection>]
23+
Get-PnPPrivilegedIdentityManagementEligibleAssignment [-Identity <PrivilegedIdentityManagementRoleEligibilitySchedulePipeBind>] [-Connection <PnPConnection>]
2424
```
2525

2626
## DESCRIPTION
@@ -30,14 +30,14 @@ Retrieve the available Privileged Identity Management eligibility assignment rol
3030

3131
### Example 1
3232
```powershell
33-
Get-PnPPriviledgedIdentityManagementEligibleAssignment
33+
Get-PnPPrivilegedIdentityManagementEligibleAssignment
3434
```
3535

3636
Retrieves the available Privileged Identity Management eligibility assignment roles
3737

3838
### Example 2
3939
```powershell
40-
Get-PnPPriviledgedIdentityManagementEligibleAssignment -Identity 62e90394-69f5-4237-9190-012177145e10
40+
Get-PnPPrivilegedIdentityManagementEligibleAssignment -Identity 62e90394-69f5-4237-9190-012177145e10
4141
```
4242

4343
Retrieves the Privileged Identity Management eligibility assignment role with the provided id
@@ -61,10 +61,10 @@ Accept wildcard characters: False
6161
```
6262
6363
### -Identity
64-
The name, id or instance of a Priviledged Identity Management eligibility assignment role to retrieve the details of
64+
The name, id or instance of a Privileged Identity Management eligibility assignment role to retrieve the details of
6565
6666
```yaml
67-
Type: PriviledgedIdentityManagementRoleEligibilitySchedulePipeBind
67+
Type: PrivilegedIdentityManagementRoleEligibilitySchedulePipeBind
6868
Parameter Sets: (All)
6969
Aliases:
7070

documentation/Get-PnPPriviledgedIdentityManagementRole.md renamed to documentation/Get-PnPPrivilegedIdentityManagementRole.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
Module Name: PnP.PowerShell
33
schema: 2.0.0
44
applicable: SharePoint Online
5-
online version: https://pnp.github.io/powershell/cmdlets/Get-PnPPriviledgedIdentityManagementRole.html
5+
online version: https://pnp.github.io/powershell/cmdlets/Get-PnPPrivilegedIdentityManagementRole.html
66
external help file: PnP.PowerShell.dll-Help.xml
7-
title: Get-PnPPriviledgedIdentityManagementRole
7+
title: Get-PnPPrivilegedIdentityManagementRole
88
---
99

10-
# Get-PnPPriviledgedIdentityManagementRole
10+
# Get-PnPPrivilegedIdentityManagementRole
1111

1212
## SYNOPSIS
1313

@@ -20,7 +20,7 @@ Retrieve the available Privileged Identity Management roles that exist within th
2020
## SYNTAX
2121

2222
```powershell
23-
Get-PnPPriviledgedIdentityManagementRole [-Identity <PriviledgedIdentityManagementRolePipeBind>] [-Connection <PnPConnection>]
23+
Get-PnPPrivilegedIdentityManagementRole [-Identity <PrivilegedIdentityManagementRolePipeBind>] [-Connection <PnPConnection>]
2424
```
2525

2626
## DESCRIPTION
@@ -30,21 +30,21 @@ Retrieve the available Privileged Identity Management roles that exist within th
3030

3131
### Example 1
3232
```powershell
33-
Get-PnPPriviledgedIdentityManagementRole
33+
Get-PnPPrivilegedIdentityManagementRole
3434
```
3535

3636
Retrieves the available Privileged Identity Management roles
3737

3838
### Example 2
3939
```powershell
40-
Get-PnPPriviledgedIdentityManagementRole -Identity "Global Administrator"
40+
Get-PnPPrivilegedIdentityManagementRole -Identity "Global Administrator"
4141
```
4242

4343
Retrieves the Privileged Identity Management with the provided name
4444

4545
### Example 3
4646
```powershell
47-
Get-PnPPriviledgedIdentityManagementRole -Identity 62e90394-69f5-4237-9190-012177145e10
47+
Get-PnPPrivilegedIdentityManagementRole -Identity 62e90394-69f5-4237-9190-012177145e10
4848
```
4949

5050
Retrieves the Privileged Identity Management role with the provided id
@@ -68,10 +68,10 @@ Accept wildcard characters: False
6868
```
6969
7070
### -Identity
71-
The name, id or instance of a Priviledged Identity Management role to retrieve the details of
71+
The name, id or instance of a Privileged Identity Management role to retrieve the details of
7272
7373
```yaml
74-
Type: PriviledgedIdentityManagementRolePipeBind
74+
Type: PrivilegedIdentityManagementRolePipeBind
7575
Parameter Sets: (All)
7676
Aliases:
7777

pages/articles/determinepermissions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ When using the `Sites.Selected` permission, you still must assign permissions to
3333
Grant-PnPAzureADAppSitePermission -AppId "<Client ID of your Entra ID applicarion registration>" -DisplayName "PnP PowerShell" -Permissions Read -Site <url of the SharePoint Online site to which you will connect>
3434
```
3535

36-
In order to be able to run this cmdlet, you will need to connect to PnP PowerShell using preferably another Entra ID application registration which will have the `AllSites.FullControl` permission on the delegate scope on SharePoint set to it and being logged on with a Global Administrator or SharePoint Administrator priviledged account.
36+
In order to be able to run this cmdlet, you will need to connect to PnP PowerShell using preferably another Entra ID application registration which will have the `AllSites.FullControl` permission on the delegate scope on SharePoint set to it and being logged on with a Global Administrator or SharePoint Administrator privileged account.
3737

3838
## Adding additional permissions as needed
3939

@@ -65,7 +65,7 @@ In this scenario, you now know you need to add `Application.Read.All` on the app
6565

6666
As mentioned above, unfortunately, not for all cmdlets it will be clear which exact (minimum) permissions will be needed. Not even when using `-Verbose`. To give some guidance which permissions you could try for a minimum permissions approach, follow the table below.
6767

68-
What are you trying to do | Permission type | Permission(s) likely needed from least to most priviledged
68+
What are you trying to do | Permission type | Permission(s) likely needed from least to most privileged
6969
| ------------------------| --------------- | -------------------------- |
7070
| Interact with SharePoint | Delegate | AllSites.Read / AllSites.Write / AllSites.Manage / AllSites.FullControl |
7171
| Interact with SharePoint | App Only | Sites.Selected / Sites.Read.All / Sites.ReadWrite.All / Sites.Manage.All / Sites.FullControl .All |

pages/articles/permissionattributes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ If multiple attributes are defined on a cmdlet, the cmdlet will require only one
4242
[RequiredApiDelegatedOrApplicationPermissions("graph/Directory.ReadWrite.All")]
4343
```
4444

45-
These attributes should be added starting with the least priviledged one at the top going down towards the most priviledged permission.
45+
These attributes should be added starting with the least privileged one at the top going down towards the most privileged permission.
4646

4747
If you have a scenario that a combination of permissions is required, you can define multiple permissions in the same attribute to have them be handled as an AND. I.e. the following permission attributes would define that all of the permissions are required to run the cmdlet:
4848

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
1-
using PnP.PowerShell.Commands.Model.PriviledgedIdentityManagement;
1+
using PnP.PowerShell.Commands.Model.PrivilegedIdentityManagement;
22
using PnP.PowerShell.Commands.Utilities;
33
using PnP.PowerShell.Commands.Utilities.REST;
44
using System;
55
using System.Management.Automation;
66

77
namespace PnP.PowerShell.Commands.Base.PipeBinds
88
{
9-
public sealed class PriviledgedIdentityManagementRoleEligibilitySchedulePipeBind
9+
public sealed class PrivilegedIdentityManagementRoleEligibilitySchedulePipeBind
1010
{
1111
public readonly Guid? Id;
1212

1313
public RoleEligibilitySchedule Instance { get; private set; }
1414

15-
public PriviledgedIdentityManagementRoleEligibilitySchedulePipeBind(RoleEligibilitySchedule instance)
15+
public PrivilegedIdentityManagementRoleEligibilitySchedulePipeBind(RoleEligibilitySchedule instance)
1616
{
1717
Instance = instance;
1818
}
1919

20-
public PriviledgedIdentityManagementRoleEligibilitySchedulePipeBind(Guid id)
20+
public PrivilegedIdentityManagementRoleEligibilitySchedulePipeBind(Guid id)
2121
{
2222
Id = id;
2323
}
2424

25-
public PriviledgedIdentityManagementRoleEligibilitySchedulePipeBind(string id)
25+
public PrivilegedIdentityManagementRoleEligibilitySchedulePipeBind(string id)
2626
{
2727
if (!string.IsNullOrEmpty(id) && Guid.TryParse(id, out Guid idGuid))
2828
{
@@ -38,7 +38,7 @@ internal RoleEligibilitySchedule GetInstance(ApiRequestHelper requestHelper)
3838
}
3939
if (Id.HasValue)
4040
{
41-
Instance = PriviledgedIdentityManagamentUtility.GetRoleEligibilityScheduleById(requestHelper, Id.Value);
41+
Instance = PrivilegedIdentityManagementUtility.GetRoleEligibilityScheduleById(requestHelper, Id.Value);
4242
}
4343
return Instance;
4444
}

src/Commands/Base/PipeBinds/PriviledgedIdentityManagementRolePipeBind.cs renamed to src/Commands/Base/PipeBinds/PrivilegedIdentityManagementRolePipeBind.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
1-
using PnP.PowerShell.Commands.Model.PriviledgedIdentityManagement;
1+
using PnP.PowerShell.Commands.Model.PrivilegedIdentityManagement;
22
using PnP.PowerShell.Commands.Utilities;
33
using PnP.PowerShell.Commands.Utilities.REST;
44
using System;
55
using System.Management.Automation;
66

77
namespace PnP.PowerShell.Commands.Base.PipeBinds
88
{
9-
public sealed class PriviledgedIdentityManagementRolePipeBind
9+
public sealed class PrivilegedIdentityManagementRolePipeBind
1010
{
1111
public readonly Guid? Id;
1212

1313
public readonly string DisplayName;
1414

1515
public RoleDefinition Instance { get; private set; }
1616

17-
public PriviledgedIdentityManagementRolePipeBind(RoleDefinition instance)
17+
public PrivilegedIdentityManagementRolePipeBind(RoleDefinition instance)
1818
{
1919
Instance = instance;
2020
}
2121

22-
public PriviledgedIdentityManagementRolePipeBind(Guid id)
22+
public PrivilegedIdentityManagementRolePipeBind(Guid id)
2323
{
2424
Id = id;
2525
}
2626

27-
public PriviledgedIdentityManagementRolePipeBind(string id)
27+
public PrivilegedIdentityManagementRolePipeBind(string id)
2828
{
2929
if(Guid.TryParse(id, out Guid guidId))
3030
{
@@ -44,11 +44,11 @@ internal RoleDefinition GetInstance(ApiRequestHelper requestHelper)
4444
}
4545
if (Id.HasValue)
4646
{
47-
Instance = PriviledgedIdentityManagamentUtility.GetRoleDefinitionById(requestHelper, Id.Value);
47+
Instance = PrivilegedIdentityManagementUtility.GetRoleDefinitionById(requestHelper, Id.Value);
4848
}
4949
if (!string.IsNullOrEmpty(DisplayName))
5050
{
51-
Instance = PriviledgedIdentityManagamentUtility.GetRoleDefinitionByName(requestHelper, DisplayName);
51+
Instance = PrivilegedIdentityManagementUtility.GetRoleDefinitionByName(requestHelper, DisplayName);
5252
}
5353
return Instance;
5454
}

src/Commands/Model/PriviledgedIdentityManagement/Expiration.cs renamed to src/Commands/Model/PrivilegedIdentityManagement/Expiration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace PnP.PowerShell.Commands.Model.PriviledgedIdentityManagement
1+
namespace PnP.PowerShell.Commands.Model.PrivilegedIdentityManagement
22
{
33
/// <summary>
44
/// Defines an expiration of a scheduled role assignment within Privileged Identity Management

src/Commands/Model/PriviledgedIdentityManagement/RoleAssignmentScheduleRequest.cs renamed to src/Commands/Model/PrivilegedIdentityManagement/RoleAssignmentScheduleRequest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System;
22

3-
namespace PnP.PowerShell.Commands.Model.PriviledgedIdentityManagement
3+
namespace PnP.PowerShell.Commands.Model.PrivilegedIdentityManagement
44
{
55
/// <summary>
66
/// Requests enabling a role assignment

0 commit comments

Comments
 (0)