Connect & Integrate Cloudflare

Last updated: June 27, 2025

At time of writing, this integration is in the process of being added to the YeshID integration catalog. Once the integration is in there, you will be able to select catalog and will only need to provide your API token, and Account ID.

Steps

  1. Add Cloudflare as an application in YeshID. See:

  2. Create an API token by following: https://developers.cloudflare.com/fundamentals/api/get-started/create-token/

    1. Ensure that Account.Account Settings scopes are granted:

      SCR-20250627-mlce.png
  3. Get your Account ID

    SCR-20250627-mpwo.png
  4. In YeshID, head to your Cloudflare app and click "Connect & Integrate"

  5. Select integration type Custom API

  6. Include your API TOKEN created in the previous step

    SCR-20250627-mluv-2.png

Import Users

SCR-20250627-mnsr.png
  • Endpoint URL: https://api.cloudflare.com/client/v4/accounts/<your_account_id>/members

Create Users

Note that the role in this screenshot is corresponds to the Minimal Access Role

SCR-20250627-modl-2.png
  • Method POST

  • Endpoint URL: https://api.cloudflare.com/client/v4/accounts/<your_account_id>/members

  • Body:

{
  "email":{{.User.Email}},
  "roles": [
    "5c35d2bf3a545e6b7560b826c0d23c39"
  ]
}
  • ID Path

    .result.id

Delete Users

SCR-20250627-mpfv.png
  • Method DELETE

  • Endpoint URL: https://api.cloudflare.com/client/v4/accounts/<your_account_id>/members