-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
17 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Scripted User Profile JSON | ||
Currently, a given user cannot view their own user profile via the API. Until that functionality is implemented in the codebase, the following method can be used: | ||
|
||
* Setup a collection with a display template that is scripted with the following: | ||
``` | ||
<div id="scripted-user-details"> | ||
{ | ||
"id": "${user.getID()}", | ||
"username": "${user.getUsername()}", | ||
"firstName": "${user.getFirstName()}", | ||
"lastName": "${user.getLastName()}", | ||
"emailAddress": "${user.getEmail()}" | ||
} | ||
</div> | ||
``` | ||
* Contribute an item to that collection. Any user that hits that item summary will have access to JSON of their user's profile. | ||
* Setup a shortcut URL `/s/profile` to point to the item contributed above. |