This section of the API relates to information about the current user.
Method to return the user details.
A user details object.
const userDetails = window.sas.smi.user.getDetails();console.log(userDetails.userId); Copy
const userDetails = window.sas.smi.user.getDetails();console.log(userDetails.userId);
Method to return whether or not the user has the supplied feature.
The feature name. For example: svi.access.mobile
True if the user has the supplied feature, otherwise false.
const hasFeature = window.sas.smi.user.hasFeature("svi.access.mobile");console.log(hasFeature); Copy
const hasFeature = window.sas.smi.user.hasFeature("svi.access.mobile");console.log(hasFeature);
This section of the API relates to information about the current user.