For the complete documentation index, see llms.txt. This page is also available as Markdown.

Member Management API

Invite workspace members and update member roles.

Invite workspace members and update member roles.

Authentication

Admin permissions are required for all operations on this page. Set GC_API_KEY to an API key with the required permissions and GC_BACKEND_ID to the backend ID. Every example sends both headers. For self-hosted deployments, replace https://api.groundcover.com with your API URL.

Invite members

POST /api/rbac/member/invite

The body contains members, an array of objects with email and either a role (read, write, admin) or policyUUIDs. Use policy UUIDs for custom/scoped access.

curl --request POST \
  --url "https://api.groundcover.com/api/rbac/member/invite" \
  --header "Authorization: Bearer $GC_API_KEY" \
  --header "X-Backend-Id: $GC_BACKEND_ID" \
  --header "Content-Type: application/json" \
  --data '{
  "members": [
    {
      "email": "reader@example.com",
      "role": "read"
    }
  ]
}'

Success returns HTTP 200 with no body. Requests are subject to seat limits and workspace access rules. A seat-limit failure returns 401 with {"message":"max seats reached"}. Invitations are processed individually; an error can occur after earlier members were invited.

Update roles

POST /api/rbac/member/update

Every item requires email and role. Success returns HTTP 200 with member objects containing fields such as email, roleType, owner, created, lastSeen, and firstLogin. An administrator cannot change their own administrator role through this operation. A batch can partially succeed before an error is returned; re-read member state before retrying.

For custom policies, use Apply policies to users. See also List Seats Usage and Remove Member.

Last updated