Skip to content

Commit 5e2c768

Browse files
Merge pull request SharePoint#8398 from FouziyaL/patch-2
Fix on Grant-PnPHubSiteRights cmdlet
2 parents 5289862 + a2af9df commit 5e2c768

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/features/hub-site/create-hub-site-with-powershell.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Create SharePoint hub sites using PowerShell
33
description: Example code for creating a SharePoint hub site by using PowerShell.
4-
ms.date: 06/28/2022
4+
ms.date: 08/24/2022
55
ms.localizationpriority: high
66
---
77

@@ -76,7 +76,7 @@ Now we will restrict access so that only the user `[email protected]` can make
7676
- Run the [Grant-PnPHubSiteRights](https://pnp.github.io/powershell/cmdlets/Grant-PnPHubSiteRights.html) cmdlet to grant a user rights to the marketing hub site. We'll use `nestorw@contoso` in this example, but you can use any valid user on your tenant (you can specify multiple users by separating them with a comma):
7777

7878
```powershell
79-
Grant-PnPHubSiteRights -Identity https://contoso.sharepoint.com/sites/marketing -Principals "nestorw@contoso" -Rights Join
79+
Grant-PnPHubSiteRights -Identity https://contoso.sharepoint.com/sites/marketing -Principals "nestorw@contoso"
8080
```
8181

8282
## Create and associate a new site

0 commit comments

Comments
 (0)