IntroductionBefore you beginTerminologyGetting started
Authorization
Accounts
Entities
User accounts
IntroductionCreate a new accountRetrieve account informationAuthorizedActivatedManage user propertiesManage account properties
GroupsFilesFoldersTemplatesEmail templatesAppsErrors

Getting account information

SmartVault allows you to get details about registered users; more specifically they let you retrieve their status regarding authorization and activation.

Remember you'll need to use the client token for every getting the account information. Also, the info you add while the user is logged in will be wiped out once the user signs out of the account.

The basic access authorization header value for this request needs to be:

clientId + ':' + clientToken

endpoints
GET/auto/usr/{email}



Authorized


The authorization property is related to the ability of your client to perform operations as the user being retrieved.

If the user is activated but not authorized, the "authorization_uri" parameter will contain the URL that the user needs to visit in order to authorize your application. This "authorization_uri" will show on the body of the response only if not authorized:
{
"error": {
"success": true
},
"message": {
"authorized": false,
"activated": true,
"authorization_uri": "https://my.smartvault.com/users/secure/IntegratedApplications.aspx?email=newAccountEmail&c=JNqR55qTh0Ov8T2ahA5Z1g",
"id": "User:QVqGsFoKkU-OAx2KownMFw"
}
}

After clicking on the link, the user will be prompted to allow the request:

Authorization prompt


Once you've clicked "Allow", the client id is now listed under "My Apps" and if you execute the request again, the "authorized" param will be set to "true".





You can optionally add a "redirect_uri" parameter to this "authorization_uri" in order to return the user to where they were in your workflow.

Example of an authorization URL, with redirect_uri added to the end:
https://my.smartvault.com/secure/users/IntegratedApplications.aspx?c=cCLwi4atPkiPfJhTmof-bg&redirect_uri=https://www.myawesomeapp.com%3Fstate%3Dmagicalstateinfo
Ensure that you encode your URL properly if you use this feature.


If any error happens while using the redirection, three additional parameters will be added to the URL when the user is redirected back to your application:


error_reasonAn integer based error value.
errorA textual representation of the error.
error_descriptionA more detailed description of the error.



Activated


Activation is a technique SmartVault uses to verify the end user has possession of the email account used for login purposes.

The "activated" property of the response indicates whether or not the user has been activated in SmartVault.
A user that has not been activated cannot log into SmartVault directly or indirectly (via your client). You'll need to led the user to activate their account before being able to make the integration works. You can check more information about this on the [Authorized section](#authorized) above.



Request


curl --include \
--header "Authorization: Basic dGVzdHVzZXJAc21hcnR2YXVsdC5jb206UTB4Sk1EQUFBQUFBQUFBQlVZRE9MOE82N3oyQjdvVmJLcytWMngybmZHTXgzR2FzY2pNUEp4Y0dGeHZPeWc9PQ==" \
--header "Accept: application/json" \
'https://rest.smartvault.com/auto/usr/{email}'

Response


Returns whether or not the account its activated and / or authorized as well as the account id. You can get more information about what authorized and activated means at the beggining of this page.

Show success object


Returns an error object if the email doesn't exist.

Show error object