Skip to main content

Get a specific portal user

GET 

https://api.iot.telenor.com/identity-access-management/domains/:id/portal-users/:portalUserId

Get a specific portal user.

Request

Path Parameters

    id uuidrequired

    Identifies the domain in Keycloak.

    portalUserId uuidrequired

    Identifies the portal user.

Responses

The portal user was successfully retrieved.

Schema
    iduuidrequired

    Id of the portal user.

    createdTimestampdate-timerequired

    When the user was created, specified in ISO 8601.

    enableduserEnabledDefinition (boolean)required

    Sets a user to active if true or inactive if false.

    firstNameportalUserFirstNameDefinition (string)required

    First name of the portal user.

    Example: John
    lastNameportalUserLastNameDefinition (string)required

    Last name of the portal user.

    Example: Doe
    emailportalUserEmailDefinition (string)required

    The email address of the portal user.

    Possible values: >= 5 characters and <= 254 characters

    Example: john.doe@example.com
    phoneNumberportalUserPhoneNumberDefinition (string)

    The phone number of the portal user.

    Possible values: >= 4 characters and <= 20 characters

    Example: 460760000001
    domainIddomainIdDefinition (string)required

    Hierarchical identifier for a domain. Used to identify which domain a user belongs to and whether a user has access to a domain.

    Example: abcd1234-efgh1234
    roles object[]required

    Contains list of roles.

  • Array [
  • iduuidrequired

    Identifies the role.

    nameroleNameDefinition (string)required

    Name of the role.

    Example: Subscription ordering
    descriptionroleDescriptionDefinition (string)required

    Description of the role.

    Example: Allows user to order new subscriptions and follow up existing orders.
  • ]
  • domain objectrequired

    Contains domain properties.

    iduuidrequired

    Id of the domain in Keycloak. Only used in this API, not to be confused with domainId.

    namedomainNameDefinition (string)required

    Name of the domain.

    Example: Acme

Authorization: oauth2

name: oAuth2type: oauth2scopes: openidflows: {
  "authorizationCode": {
    "tokenUrl": "/auth/realms/telenor-iot/protocol/openid-connect/token",
    "authorizationUrl": "/auth/realms/telenor-iot/protocol/openid-connect/auth",
    "scopes": {
      "openid": "openid"
    }
  },
  "clientCredentials": {
    "tokenUrl": "/auth/realms/telenor-iot/protocol/openid-connect/token",
    "scopes": {
      "openid": "openid"
    }
  }
}
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.iot.telenor.com/identity-access-management/domains/:id/portal-users/:portalUserId");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <token>");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
https://api.iot.telenor.com/identity-access-management
Auth
Parameters
— pathrequired
— pathrequired
ResponseClear

Click the Send API Request button above and see the response here!