forked from pnp/pnpjs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request pnp#2260 from patrick-rodgers/version-3
Version 3
- Loading branch information
Showing
3 changed files
with
16 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,7 +40,7 @@ import "@pnp/sp/site-users/web"; | |
const sp = spfi(...); | ||
|
||
const id = 6; | ||
user = await sp.web.getUserById(id); | ||
user = await sp.web.getUserById(id)(); | ||
``` | ||
|
||
### Ensure user | ||
|
@@ -103,13 +103,13 @@ import "@pnp/sp/site-users/web"; | |
const sp = spfi(...); | ||
|
||
// get user object by id | ||
const user = await sp.web.siteUsers.getById(6); | ||
const user = await sp.web.siteUsers.getById(6)(); | ||
|
||
//get user object by Email | ||
const user = await sp.web.siteUsers.getByEmail("[email protected]"); | ||
const user = await sp.web.siteUsers.getByEmail("[email protected]")(); | ||
|
||
//get user object by LoginName | ||
const user = await sp.web.siteUsers.getByLoginName("userLoginName"); | ||
const user = await sp.web.siteUsers.getByLoginName("userLoginName")(); | ||
``` | ||
|
||
### Update user | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters