PHP Client for Cloudflare API
User Groups

Members

Members endpoint reference.

List

List all the members attached to a user group.

ParamTypeRequiredDefaultDescription
accountIdstringYesAccount identifier.
userGroupIdstringYesUser Group identifier.
paramsarrayNo[]Array containing the necessary params, e.g. fuzzyEmail.
php
$response = $client->iam()->userGroups()->members()->list('ACCOUNT_ID', 'USER_GROUP_ID', []);
View this operation on the Cloudflare API Reference

Create

Add members to a User Group.

ParamTypeRequiredDefaultDescription
accountIdstringYesAccount identifier.
userGroupIdstringYesUser Group identifier.
membersarrayYesArray of member identifiers to add, e.g. [['id' => 'member_id']].
php
$response = $client->iam()->userGroups()->members()->create('ACCOUNT_ID', 'USER_GROUP_ID', []);
View this operation on the Cloudflare API Reference

Update

Replace the set of members attached to a User Group.

ParamTypeRequiredDefaultDescription
accountIdstringYesAccount identifier.
userGroupIdstringYesUser Group identifier.
membersarrayYesArray of member identifiers, e.g. [['id' => 'member_id']].
php
$response = $client->iam()->userGroups()->members()->update('ACCOUNT_ID', 'USER_GROUP_ID', []);
View this operation on the Cloudflare API Reference

Delete

Remove a member from a User Group.

ParamTypeRequiredDefaultDescription
accountIdstringYesAccount identifier.
userGroupIdstringYesUser Group identifier.
memberIdstringYesMember identifier.
php
$response = $client->iam()->userGroups()->members()->delete('ACCOUNT_ID', 'USER_GROUP_ID', 'MEMBER_ID');
View this operation on the Cloudflare API Reference

Get

Get information about a specific member of a User Group.

ParamTypeRequiredDefaultDescription
accountIdstringYesAccount identifier.
userGroupIdstringYesUser Group identifier.
memberIdstringYesMember identifier.
php
$response = $client->iam()->userGroups()->members()->get('ACCOUNT_ID', 'USER_GROUP_ID', 'MEMBER_ID');
View this operation on the Cloudflare API Reference
Copyright © 2026