User

Returns data and authentication tokens for a user.

Get Authentication Token for User

This endpoint allows you to GET a token to impersonate a user when accessing the Public API. Notice how this endpoint uses "https://spaces.nexudus.com" and not the domain of the space. This is because you must call this endpoint either as a full unrestricted administrator or, at least, using the credentials of a user in role "User-Edit".

Once you obtain a token for a user, you can use that token to make subsequent request to the Public API. All those requests will be on behalf of the user you obtained the token for.

🔒 Requires role "ADMIN" or "User-Edit"

GET https://spaces.nexudus.com/api/sys/users/:user_id/token/refresh

Example request

GET https://spaces.nexudus.com/api/sys/users/123456789/token/refresh
Content-Type: application/json
Authentication: Basic ZXhhbXBsZUBuZXh1ZHVzLmNvbTpFeGFtcGxlMTIzNA==
or
Authentication: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJ0...

Example response


{
  "Status": 200,
  "Message": "OK",
  "Value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9....QAKn4g7UIM",
  "Errors": null,
  "WasSuccessful": true
}

Get User Information

This endpoint allows you to GET a list of image files based on one or more filter query string parameters.

GET https://xyz.spaces.nexudus.com/en/user/me

Example request

GET https://xyz.spaces.nexudus.com/en/user/me
Content-Type: application/json
Authentication: Basic ZXhhbXBsZUBuZXh1ZHVzLmNvbTpFeGFtcGxlMTIzNA==
or
Authentication: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJ0...

Example response


{
    "NewPasswordConfirm": null,
    "OldPassword": null,
    "DefaultBusinessId": 287264677,
    "DefaultBusinessName": "Kalkio",
    "DefaultCurrencyId": 0,
    "DefaultCurrencyName": null,
    "DefaultCurrencyCode": null,
    "DefaultCountryId": 0,
    "DefaultCountryName": null,
    "DefaultSimpleTimeZoneId": 0,
    "DefaultSimpleTimeZoneName": null,
    "DefaultSimpleTimeZoneNameIana": null,
    "FullName": "John Doe",
    "Email": "example@nexudus.com",
    "AccessToken": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUz...",
    "PreferredLanguageId": 287264677,
    "NewPassword": null,
    "PassportNumber": null,
    "PassportCardNumber": null,
    "EnablePassportAccess": true,
    "Active": true,
    "IsAdmin": true,
    "APIAccess": true,
    "Validated": true,
    "MustResetPassword": false,
    "LastAccess": "2019-12-09T14:50:04Z",
    "Devices": null,
    "OnNewEmail": true,
    "OnHelpDeskMsg": true,
    "OnNewWallPost": true,
    "OnNewMember": true,
    "OnProfileChanges": true,
    "OnNewBlogComment": false,
    "OnNewEventComment": false,
    "OnTariffChange": true,
    "OnBookingChange": true,
    "OnPurchases": true,
    "OnVisitorRegistration": true,
    "OnPlaformInvoices": true,
    "ReceiveCommunityDigest": false,
    "ReceiveEveryMessage": true,
    "Businesses": [
        287964677,
        627703076,
        627703077
    ],
    "AddedBusinesses": null,
    "RemovedBusinesses": null,
    "UserRoles": [
        770685918,
        800349553,
        961091136,
        961274353
    ],
    "AddedUserRoles": null,
    "RemovedUserRoles": null,
    "ChatRooms": [],
    "AddedChatRooms": null,
    "RemovedChatRooms": null,
    "NewAvatarUrl": null,
    "AvatarFileName": null,
    "ClearAvatarFile": false,
    "Id": 303914611,
    "UpdatedOn": "2019-12-09T15:13:58Z",
    "CreatedOn": "2017-02-24T23:45:48Z",
    "UniqueId": "d376122-49c3-4167-bd0b-d185a079e9ff",
    "UpdatedBy": "example@nexudus.com",
    "IsNew": false,
    "SystemId": null,
    "ToStringText": "John Doe - example@nexudus.com",
    "LocalizationDetails": null
}

 

User Exists?

Checks if a user is already registered with this location.

GET https://xyz.spaces.nexudus.com/en/user/exists?email=:email

Example request

GET https://xyz.spaces.nexudus.com/en/user/exists?email=example@nexudus.com
Content-Type: application/json

Example response

true

 Log in

Logs are user into the members portal based on a one-time JWT access token.

GET https://xyz.spaces.nexudus.com	/en/user/login?t=:accessToken

Example request

GET https://xyz.spaces.nexudus.com/en/user/login?t=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUz...

Example response

HTTP redirect to https://xyz.spaces.nexudus.com
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Please sign in to leave a comment.