Skip to main content
GET
/
organizations
/
{orgId}
/
users
/
{id}
Retrieve OrgUser
curl --request GET \
  --url https://api.m3ter.com/organizations/{orgId}/users/{id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "version": 123,
  "firstName": "<string>",
  "lastName": "<string>",
  "contactNumber": "<string>",
  "email": "<string>",
  "organizations": [
    "<string>"
  ],
  "firstAcceptedTermsAndConditions": "2023-11-07T05:31:56Z",
  "lastAcceptedTermsAndConditions": "2023-11-07T05:31:56Z",
  "supportUser": true,
  "dtCreated": "2023-11-07T05:31:56Z",
  "dtLastModified": "2023-11-07T05:31:56Z",
  "createdBy": "<string>",
  "lastModifiedBy": "<string>",
  "permissionPolicy": [
    {
      "effect": "ALLOW",
      "action": [
        "ALL"
      ],
      "resource": [
        "<string>"
      ]
    }
  ],
  "dtEndAccess": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

m3ter supports machine to machine authentication using the clientCredentials OAuth2 flow.

The authorizationCode flow controls access for human users via the m3ter Console application.

Path Parameters

id
string
required

The unique identifier (UUID) of the Organization User to retrieve.

Note: The orgId path parameter is also required.

Response

Returns the OrgUser

id
string
required

The UUID of the entity.

version
integer<int64>

The version number:

  • Create: On initial Create to insert a new entity, the version is set at 1 in the response.
  • Update: On successful Update, the version is incremented by 1 in the response.
firstName
string

The first name of the user.

lastName
string

The surname of the user.

contactNumber
string

The user's contact telephone number.

email
string

The email address for this user.

organizations
string[]

An array listing the Organizations where this user has access.

firstAcceptedTermsAndConditions
string<date-time>

The date and time (in ISO 8601 format) when this user first accepted the the m3ter terms and conditions.

lastAcceptedTermsAndConditions
string<date-time>

The date and time (in ISO 8601 format) when this user last accepted the the m3ter terms and conditions.

supportUser
boolean

Indicates whether this is a m3ter Support user.

dtCreated
string<date-time>

The date and time (in ISO-8601 format) when the user was created.

dtLastModified
string<date-time>

The date and time (in ISO-8601 format) when the user was last modified.

createdBy
string

The user who created this user.

lastModifiedBy
string

The unique identifier (UUID) of the user who last modified this user record.

permissionPolicy
object[]

An array of permission statements for the user. Each permission statement defines a specific permission for the user.

dtEndAccess
string<date-time>

The date and time (in ISO 8601 format) when the user's access will end. Used to set or update the date and time a user's access expires.