getGroup( )


Gets a group by ID.

The getGroup() function returns a Promise that resolves to a group whose ID matches the given ID.

Note: For SECRET groups, only site admins, group admins, and group members can see a group and its content. However, if the suppressAuth option is set to true, all permissions are overwritten, and all site members (including non-group members) can see a group and its content.

Method Declaration
Copy
Method Parameters
groupIdstringRequired

ID of requested group.


optionsOptions

Authorization options.

Returns
Return Type:Promise<Group>
Did this help?