GET login/users/:user id/user authorized apps

From Social ID Developers
Jump to: navigation, search

Contents

Description

Searches for Authorized Login Apps of a User.

Returns only Login Apps that the User is authorized to access, based on Login App sign in policies and User roles.

Resource URL

  GET https://api.socialidnow.com/v1/marketing/login/users/:user_id/user_authorized_apps

Parameters

URL Parameters

user_id required user identifier.

See GET login/apps/search for optional search parameters.

Authentication

This API requires Account authentication. See Authentication.

Response

Response Status

ok (200) The request was successful.
unauthorized (401) The authentication is wrong. See Authentication.
forbidden (403) The account does not have access to this user.
internal_server_error (500) An unknown error happened.

Response Body

A successful search returns the following fields:

total total amount of authorized login apps found.
offset amount of discarded authorized login apps (page start).
count amount of authorized login apps returned in this page.
results array with authorized login app details.

Examples

Without search parameters

Request

curl -iX GET 'https://api.socialidnow.com/v1/marketing/login/users/10/user_authorized_apps' \
  --user 138:e8b9ca24f1b590af67e6271297d6e1f7226625d61c5b5daa1b2f215464e292cf

Response

Response Headers
HTTP/1.1 200 Ok
Status: 200
Response Body
{
  "total": 3,
  "offset": 0,
  "count": 3,
  "results": [
    {
      "id": 1,
      "name": "Login App A",
      "created_at": "2023-08-10T17:00:00Z",
      "updated_at": "2023-08-10T17:00:00Z"
    },
    {
      "id": 2,
      "name": "Login App B",
      "created_at": "2023-08-10T17:01:00Z",
      "updated_at": "2023-08-10T17:01:00Z"
    },
    {
      "id": 3,
      "name": "Login App C",
      "created_at": "2023-08-10T17:02:00Z",
      "updated_at": "2023-08-10T17:02:00Z"
    }
  ]
}

With search parameters

Request

curl -iX GET 'https://api.socialidnow.com/v1/marketing/login/users/10/user_authorized_apps?page_size=1&page=2' \
  --user 138:e8b9ca24f1b590af67e6271297d6e1f7226625d61c5b5daa1b2f215464e292cf

Response

Response Headers
HTTP/1.1 200 Ok
Status: 200
Response Body
{
  "total": 3,
  "offset": 1,
  "count": 1,
  "results": [
    {
      "id": 2,
      "name": "Login App B",
      "created_at": "2023-08-10T17:01:00Z",
      "updated_at": "2023-08-10T17:01:00Z"
    }
  ]
}
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox