Members
Who belongs to an account, and with which role. A route a member’s role does not reach answers PERMISSION_DENIED. Every member may read their own membership and leave the account — except the owner, who hands ownership over first.
List members
Who belongs to the account and what each of them may do. Listing the members, reading someone else's membership, changing a role and removing a member take the account.access section; every member may read their own membership, members/{their user id}, and leave the account by deleting it. The owner is a member too and cannot be removed or leave: ownership is handed over first.
path Parameters
account_idId of the parent account.
query Parameters
page_sizeRows per page. Over the maximum is clamped, not rejected.
page_tokenOpaque token from a previous next_page_token. A token minted under a different order_by/filter is rejected.
skipRows to skip before the page (AIP-158). skip + page_size is capped at 10000; beyond that is OUT_OF_RANGE.
order_byComma-separated field [asc|desc], at most 3 keys. Default: email asc. Sortable: none — this collection serves its documented order only.
filterAIP-160 subset (§8). Filterable: email, is_owner, role. A field outside the list is INVALID_ARGUMENT.
List members › Responses
One page of members.
This page of members, in the requested order.
next_page_tokenOpaque. Absent or empty means this was the last page.
total_sizeRows in the whole filtered collection, not in this page.
Get member
Reads one membership. Every member may read their own — members/{their user id}, with is_owner and the effective_grants a client builds its menus from; reading anyone else's takes account.access.
path Parameters
account_idId of the parent account.
member_idId of the parent member.
Headers
If-None-MatchA matching etag answers 304 with no body (§16).
Get member › Responses
The resource.
nameThe resource name (§5) — the identity of this resource, and the path that addresses it: websites/{website}/cms_pages/{cms_page}. It is the handle to store, not a human label.
idThe last segment of name on its own, for a client that needs to build a child URL. Unique inside its parent, never across the platform.
create_timeWhen the resource was created (RFC 3339, UTC).
update_timeWhen the resource last changed (RFC 3339, UTC).
etagVersion of the persisted state. Send it back in If-Match on Update or Delete and the write is rejected with ABORTED if anyone else changed the resource meanwhile (§14).
userThe member, as users/{user} — the same name the account's owner uses. The last segment is also this membership's id.
emailThe member's email address, from their user profile. The list is ordered by it.
firstnameThe member's first name, from their user profile; absent when they gave none.
lastnameThe member's last name, from their user profile; absent when they gave none.
roleThe membership's role: roles/admin, roles/editor or roles/sections (see roles), or one of the account's own, accounts/{account}/roles/{role} — never another account's. The owner's membership reads roles/admin — dormant while they own the account, and what they keep after handing it over — and cannot be changed. Nobody may give a role wider than their own: that is PERMISSION_DENIED.
grantsThe sections a roles/sections membership holds, as {permission, level} — a section id from permissions and READ or WRITE. Empty, and refused when sent, under any other role. Nobody may give a grant they do not hold themselves.
is_ownerTrue for the account's one owner, who holds everything whatever the role says. The owner's membership is neither removed nor changed; the account is handed over first (accounts/{account}:transfer_ownership).
effective_grantsWhat the member actually holds, computed on every read: the role's grants — or the membership's own — with implies followed, minimal and in the order of permissions. The owner's are everything. Sections every member may read are readable whatever this says.
Delete member
Ends a membership. A member may delete their own and so leave the account; removing someone else takes account.access: WRITE. The owner can be neither removed nor leave — FAILED_PRECONDITION — until they hand the account over with accounts/{account}:transfer_ownership.
path Parameters
account_idId of the parent account.
member_idId of the parent member.
Headers
If-MatchThe etag the client last read. A mismatch is ABORTED (409) with the current resource in the error details (§14).
Delete member › Responses
Deleted. No body (§7).
Update member
Changes a member's role, and the grants of a roles/sections membership. Takes account.access: WRITE, and nobody may give a role or a grant wider than their own — that is PERMISSION_DENIED; the owner and roles/admin hold everything, so they are never refused for it. The owner's own membership cannot be changed: FAILED_PRECONDITION.
path Parameters
account_idId of the parent account.
member_idId of the parent member.
query Parameters
update_maskComma-separated field paths to merge. A field named here and sent as null is cleared; without the mask a null is dropped (§7, §11).
Headers
If-MatchThe etag the client last read. A mismatch is ABORTED (409) with the current resource in the error details (§14).
Update member › Request Body
roleThe membership's role: roles/admin, roles/editor or roles/sections (see roles), or one of the account's own, accounts/{account}/roles/{role} — never another account's. The owner's membership reads roles/admin — dormant while they own the account, and what they keep after handing it over — and cannot be changed. Nobody may give a role wider than their own: that is PERMISSION_DENIED.
grantsThe sections a roles/sections membership holds, as {permission, level} — a section id from permissions and READ or WRITE. Empty, and refused when sent, under any other role. Nobody may give a grant they do not hold themselves.
Update member › Responses
The updated resource.
nameThe resource name (§5) — the identity of this resource, and the path that addresses it: websites/{website}/cms_pages/{cms_page}. It is the handle to store, not a human label.
idThe last segment of name on its own, for a client that needs to build a child URL. Unique inside its parent, never across the platform.
create_timeWhen the resource was created (RFC 3339, UTC).
update_timeWhen the resource last changed (RFC 3339, UTC).
etagVersion of the persisted state. Send it back in If-Match on Update or Delete and the write is rejected with ABORTED if anyone else changed the resource meanwhile (§14).
userThe member, as users/{user} — the same name the account's owner uses. The last segment is also this membership's id.
emailThe member's email address, from their user profile. The list is ordered by it.
firstnameThe member's first name, from their user profile; absent when they gave none.
lastnameThe member's last name, from their user profile; absent when they gave none.
roleThe membership's role: roles/admin, roles/editor or roles/sections (see roles), or one of the account's own, accounts/{account}/roles/{role} — never another account's. The owner's membership reads roles/admin — dormant while they own the account, and what they keep after handing it over — and cannot be changed. Nobody may give a role wider than their own: that is PERMISSION_DENIED.
grantsThe sections a roles/sections membership holds, as {permission, level} — a section id from permissions and READ or WRITE. Empty, and refused when sent, under any other role. Nobody may give a grant they do not hold themselves.
is_ownerTrue for the account's one owner, who holds everything whatever the role says. The owner's membership is neither removed nor changed; the account is handed over first (accounts/{account}:transfer_ownership).
effective_grantsWhat the member actually holds, computed on every read: the role's grants — or the membership's own — with implies followed, minimal and in the order of permissions. The owner's are everything. Sections every member may read are readable whatever this says.