getUser
Overview
Function that allows for the retrieval of user information associated with a user ID or userPrincipalName. The information that is provided at time of writing is as follows:
businessPhones
displayName
givenName
id
jobTitle
Mail
mobilePhone
officeLocation
preferredLanguage
surname
userPrincipleName
Example : Default usage
import { getUser } from '@ska-telescope/ska-login-page';
...
const userInfo = setUser(SOME-USER-ID);
...
<p>
<strong>ID</strong> {userInfo.displayName}
</p>
Property |
Type |
Required |
Notes |
|---|---|---|---|
inValue |
string |
Yes |
user ID or userPrincipalName. |