GET
/
iam
/
users
Python
import os
from gcore import Gcore

client = Gcore(
    api_key=os.environ.get("GCORE_API_KEY"),  # This is the default and can be omitted
)
page = client.iam.users.list()
page = page.result[0]
print(page.id)
{
  "count": 123,
  "next": "/users?offset=20&limit=10",
  "previous": "/users?offset=10&limit=10",
  "result": [
    {
      "id": 123,
      "email": "jsmith@example.com",
      "name": "<string>",
      "lang": "de",
      "phone": "<string>",
      "company": "<string>",
      "reseller": 123,
      "client": 123,
      "deleted": true,
      "groups": [
        {
          "id": 1,
          "name": "Administrators"
        }
      ],
      "activated": true,
      "sso_auth": true,
      "two_fa": true,
      "auth_types": [
        "password"
      ],
      "user_type": "common"
    }
  ]
}

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Query Parameters

limit
integer

The maximum number of items.

offset
integer

Offset relative to the beginning of list.

Response

200
application/json

OK

The response is of type object.