Skip to content

Commit 5079dc2

Browse files
committed
Fix broken filename (missing extension).
1 parent ad6dcaf commit 5079dc2

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed

docs/solution-guidance/manage-user-sharing-expiration renamed to docs/solution-guidance/manage-user-sharing-expiration.md

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ localization_priority: Normal
88

99
# Manage per user expiration for existing users on a site
1010

11-
If you are a site administrator, you may need to [manage expiring access](https://https://support.office.com/article/manage-guest-expiration-for-a-site) for users that have access to content on your site. If your administrator has set an expiration time for access, each guest that you invite to the site or with whom you share individual files and folders will be given access for a certain number of days. If you want them to continue to have access, you must extend their access on a regular basis. There also may be times you want to change an exisiting users expiration time and that can be done via the below method.
11+
If you are a site administrator, you may need to [manage expiring access](https://https://support.office.com/article/manage-guest-expiration-for-a-site) for users that have access to content on your site. If your administrator has set an expiration time for access, each guest that you invite to the site or with whom you share individual files and folders will be given access for a certain number of days. If you want them to continue to have access, you must extend their access on a regular basis. There also may be times you want to change an exisiting users expiration time and that can be done via the below method.
1212

1313
## Change expiration time for existing user
1414

@@ -24,22 +24,22 @@ You can change expiration time for existing user using client side object model:
2424
## use or the results from the use of this script remains with you.
2525
2626
param(
27-
[Parameter(Mandatory = $true)]
28-
[string] $SiteUrl,
29-
30-
[Parameter(Mandatory = $true)]
31-
[string] $UserEmail,
32-
33-
[Parameter(Mandatory = $true)]
34-
[int] $DaysToExpiration
27+
[Parameter(Mandatory = $true)]
28+
[string] $SiteUrl,
29+
30+
[Parameter(Mandatory = $true)]
31+
[string] $UserEmail,
32+
33+
[Parameter(Mandatory = $true)]
34+
[int] $DaysToExpiration
3535
)
3636
3737
38-
#Connect to PNP
38+
#Connect to PNP
3939
Connect-PnPOnline -Url $SiteUrl
4040
4141
#ctx to the site
42-
$ctx = Get-PnPContext
42+
$ctx = Get-PnPContext
4343
4444
#Get the User and check current expiration
4545
$user = Get-PnPUser | ? Email -eq $UserEmail
@@ -52,11 +52,10 @@ Write-Host "Current Expiration: $($user.Expiration)"
5252
$user.Expiration = [DateTime]::UtcNow.AddDays($DaysToExpiration).ToString("yyyy-MM-ddTHH:mm:ssZ")
5353
$user.Update()
5454
$ctx.ExecuteQuery()
55-
56-
#Check new user Expiration for the user
57-
$ctx.Load($user)
58-
$ctx.ExecuteQuery()
55+
56+
#Check new user Expiration for the user
57+
$ctx.Load($user)
58+
$ctx.ExecuteQuery()
5959
6060
Write-Host "New Expiration: $($user.Expiration)"
6161
```
62-

0 commit comments

Comments
 (0)