Skip to content

Commit c58f65c

Browse files
authored
Merge pull request MicrosoftDocs#2216 from tseward/patch-10
Update Set-SPUser.md
2 parents 89e6eec + 63c965a commit c58f65c

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

sharepoint/sharepoint-ps/sharepoint-server/Set-SPUser.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,21 @@ For permissions and the most current information about Windows PowerShell for Sh
2828

2929
## EXAMPLES
3030

31-
### ------------------EXAMPLE-----------------------
31+
### ------------------EXAMPLE 1-----------------------
3232
```
33-
PS C:\>Set-SPUser -Identity 'Contoso\jdow' -Web http:// test -AddPermissionLevel "Contributor"
33+
PS C:\>Set-SPUser -Identity 'Contoso\jdoe' -Web https://intranet.contoso.com -AddPermissionLevel "Contributor"
3434
```
3535

36-
This example sets a user (Contoso\jdow) to be a contributor on http://test.
36+
This example sets a user (Contoso\jdoe) to be a contributor on https://intranet.contoso.com.
3737

3838

39+
### ------------------EXAMPLE 2-----------------------
40+
```
41+
PS C:\>Set-SPUser -Identity 'Contoso\jdoe' -Web https://intranet.contoso.com -SyncFromAD
42+
```
43+
44+
This updates the User Information List for the user 'contoso\jdoe' with the current `displayName` and `mail` attribute values from the user's Active Directory account.
45+
3946
## PARAMETERS
4047

4148
### -Identity
@@ -250,7 +257,7 @@ Accept wildcard characters: False
250257
```
251258

252259
### -SyncFromAD
253-
If provided, specifies that user information will be synchronized from the user directory store.
260+
If provided, specifies that user information will be synchronized from the user directory store. This switch only retrieves the `displayName` and `mail` value from the directory store. It supports Active Directory (Classic or Windows authentication), Forms-based Authentication, and SAML. FBA and SAML providers must support resolving from their directory store for this switch to work. The switch only supports SharePoint User objects.
254261

255262
```yaml
256263
Type: SwitchParameter

0 commit comments

Comments
 (0)