Skip to content
Start here

List Access SCIM update logs

zero_trust.access.logs.scim.updates.list(UpdateListParams**kwargs) -> SyncV4PagePaginationArray[UpdateListResponse]
GET/accounts/{account_id}/access/logs/scim/updates

Lists Access SCIM update logs that maintain a record of updates made to User and Group resources synced to Cloudflare via the System for Cross-domain Identity Management (SCIM).

Security

API Email + API Key

The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.

Example:X-Auth-Email: user@example.com

The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.

Example:X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194
Accepted Permissions (at least one required)
Access: SCIM Logs Read
ParametersExpand Collapse
account_id: str

Identifier.

maxLength32
idp_id: SequenceNotStr[str]

The unique Id of the IdP that has SCIM enabled.

cf_resource_id: Optional[str]

The unique Cloudflare-generated Id of the SCIM resource.

direction: Optional[Literal["desc", "asc"]]

The chronological order used to sort the logs.

One of the following:
"desc"
"asc"
idp_resource_id: Optional[str]

The IdP-generated Id of the SCIM resource.

limit: Optional[int]

The maximum number of update logs to retrieve.

page: Optional[int]

Page number of results.

per_page: Optional[int]

Number of results per page.

request_method: Optional[List[Literal["DELETE", "PATCH", "POST", "PUT"]]]

The request method of the SCIM request.

One of the following:
"DELETE"
"PATCH"
"POST"
"PUT"
resource_group_name: Optional[str]

The display name of the SCIM Group resource.

resource_type: Optional[List[Literal["USER", "GROUP"]]]

The resource type of the SCIM request.

One of the following:
"USER"
"GROUP"
resource_user_email: Optional[str]

The email address of the SCIM User resource.

formatemail
since: Optional[Union[str, datetime]]

the timestamp of the earliest update log.

formatdate-time
status: Optional[List[Literal["FAILURE", "SUCCESS"]]]

The status of the SCIM request.

One of the following:
"FAILURE"
"SUCCESS"
until: Optional[Union[str, datetime]]

the timestamp of the most-recent update log.

formatdate-time
ReturnsExpand Collapse
class UpdateListResponse:
cf_resource_id: Optional[str]

The unique Cloudflare-generated Id of the SCIM resource.

error_description: Optional[str]

The error message which is generated when the status of the SCIM request is ‘FAILURE’.

idp_id: Optional[str]

The unique Id of the IdP that has SCIM enabled.

idp_resource_id: Optional[str]

The IdP-generated Id of the SCIM resource.

logged_at: Optional[datetime]
formatdate-time
request_body: Optional[str]

The JSON-encoded string body of the SCIM request.

request_method: Optional[str]

The request method of the SCIM request.

resource_group_name: Optional[str]

The display name of the SCIM Group resource if it exists.

resource_type: Optional[str]

The resource type of the SCIM request.

resource_user_email: Optional[str]

The email address of the SCIM User resource if it exists.

formatemail
status: Optional[str]

The status of the SCIM request.

List Access SCIM update logs

import os
from cloudflare import Cloudflare

client = Cloudflare(
    api_email=os.environ.get("CLOUDFLARE_EMAIL"),  # This is the default and can be omitted
    api_key=os.environ.get("CLOUDFLARE_API_KEY"),  # This is the default and can be omitted
)
page = client.zero_trust.access.logs.scim.updates.list(
    account_id="023e105f4ecef8ad9ca31a8372d0c353",
    idp_id=["df7e2w5f-02b7-4d9d-af26-8d1988fca630", "0194ae2c-efcf-7cfb-8884-055f1a161fa5"],
)
page = page.result[0]
print(page.cf_resource_id)
{
  "errors": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "messages": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "success": true,
  "result": [
    {
      "cf_resource_id": "bd97ef8d-7986-43e3-9ee0-c25dda33e4b0",
      "error_description": "Invalid JSON body",
      "idp_id": "df7e2w5f-02b7-4d9d-af26-8d1988fca630",
      "idp_resource_id": "all_employees",
      "logged_at": "2014-01-01T05:20:00.12345Z",
      "request_body": "{}}",
      "request_method": "DELETE",
      "resource_group_name": "ALL_EMPLOYEES",
      "resource_type": "GROUP",
      "resource_user_email": "john.smith@example.com",
      "status": "FAILURE"
    }
  ],
  "result_info": {
    "count": 1,
    "page": 1,
    "per_page": 20,
    "total_count": 2000,
    "total_pages": 100
  }
}
Returns Examples
{
  "errors": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "messages": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "success": true,
  "result": [
    {
      "cf_resource_id": "bd97ef8d-7986-43e3-9ee0-c25dda33e4b0",
      "error_description": "Invalid JSON body",
      "idp_id": "df7e2w5f-02b7-4d9d-af26-8d1988fca630",
      "idp_resource_id": "all_employees",
      "logged_at": "2014-01-01T05:20:00.12345Z",
      "request_body": "{}}",
      "request_method": "DELETE",
      "resource_group_name": "ALL_EMPLOYEES",
      "resource_type": "GROUP",
      "resource_user_email": "john.smith@example.com",
      "status": "FAILURE"
    }
  ],
  "result_info": {
    "count": 1,
    "page": 1,
    "per_page": 20,
    "total_count": 2000,
    "total_pages": 100
  }
}