Skip to main content

groups

Creates, updates, deletes, gets or lists a groups resource.

Overview

Namegroups
TypeResource
Idfirebase.appdistribution.groups

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringThe name of the group resource. Format: projects/{project_number}/groups/{group_alias}
displayNamestringRequired. The display name of the group.
inviteLinkCountinteger (int32)Output only. The number of invite links for this group.
releaseCountinteger (int32)Output only. The number of releases this group is permitted to access.
testerCountinteger (int32)Output only. The number of testers who are members of this group.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, groupsIdGet a group.
listselectprojectsIdpageSize, pageTokenList groups.
createinsertprojectsIdgroupIdCreate a group.
patchupdateprojectsId, groupsIdupdateMaskUpdate a group.
deletedeleteprojectsId, groupsIdDelete a group.
batch_joinexecprojectsId, groupsIdBatch adds members to a group. The testers will gain access to all releases that the groups have access to.
batch_leaveexecprojectsId, groupsIdBatch removed members from a group. The testers will lose access to all releases that the groups have access to.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
groupsIdstring
projectsIdstring
groupIdstring
pageSizeinteger (int32)
pageTokenstring
updateMaskstring (google-fieldmask)

SELECT examples

Get a group.

SELECT
name,
displayName,
inviteLinkCount,
releaseCount,
testerCount
FROM firebase.appdistribution.groups
WHERE projectsId = '{{ projectsId }}' -- required
AND groupsId = '{{ groupsId }}' -- required;

INSERT examples

Create a group.

INSERT INTO firebase.appdistribution.groups (
data__name,
data__displayName,
projectsId,
groupId
)
SELECT
'{{ name }}',
'{{ displayName }}',
'{{ projectsId }}',
'{{ groupId }}'
RETURNING
name,
displayName,
inviteLinkCount,
releaseCount,
testerCount
;

UPDATE examples

Update a group.

UPDATE firebase.appdistribution.groups
SET
data__name = '{{ name }}',
data__displayName = '{{ displayName }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND groupsId = '{{ groupsId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
displayName,
inviteLinkCount,
releaseCount,
testerCount;

DELETE examples

Delete a group.

DELETE FROM firebase.appdistribution.groups
WHERE projectsId = '{{ projectsId }}' --required
AND groupsId = '{{ groupsId }}' --required;

Lifecycle Methods

Batch adds members to a group. The testers will gain access to all releases that the groups have access to.

EXEC firebase.appdistribution.groups.batch_join 
@projectsId='{{ projectsId }}' --required,
@groupsId='{{ groupsId }}' --required
@@json=
'{
"emails": "{{ emails }}",
"createMissingTesters": {{ createMissingTesters }}
}';