Skip to main content

User Service

The user resource is a service to view and record your user information

User REST API​

The User REST API is a private API allowing you to read and update your user information and is accessed through the following URL:

https://api.opendatadsl.com/api/user

The API consists of the following calls:

MethodPathExampleDescription
GETGet the build information for this service
GET{release}v1List all users for your tenant
GET{release}/mev1/meGet your user information
GET{release}/{email}v1/priya.shah@northgate-energy.comGet another user's information from your tenant
POST{release}v1Update your user information, or create or delete an API key
PUT{release}/{connection}/{username}/{password}v1/morningstar/user/secretStore your credentials for an external data connection, such as Morningstar. The password is kept in the secret store, never in the user record
GET{release}?_function=invite&email={email}v1?_function=invite&email=tom.clarke@northgate-energy.comInvite someone to join your tenant: they are emailed an invite code

Extra fields​

Add these names to _project when you read a user to get more information:

FieldDescription
policiesThe security policies that apply to the user
featuresThe features the user can use, from your tenant's features and the feature policies
rolesYour roles (only with me)
groupsYour groups (only with me)

API keys​

If your tenant allows API keys, you can create one for yourself with a POST. start and expires are optional dates:

POST https://api.opendatadsl.com/api/user/v1
Authorization: Bearer {{token}}
Content-Type: application/json

{
"api-key": "create",
"name": "etrm-feed",
"expires": "2027-10-31"
}

The response holds the key in key. It is only shown once, so keep it safe: use it as the Bearer token in the Authorization header. The user record lists your keys (without the key itself) in keys. To delete a key, post the same body with "api-key": "delete".

Updating your user information​

To update your user information, make a POST request to the user service, for example:

POST https://api.opendatadsl.com/api/user/v1
Authorization: Bearer {{token}}

{
"properties": {
"firstname": "Anon",
"lastname": "User",
"nickname": "anon",
"newsletter": "true"
}
}