Overview
ThecreateLoginGroup() method creates a Google login group that manages authentication for bots joining Google Meet meetings. Login groups allow you to control when and how bots authenticate to Google Meet.
Method Signature
Parameters
CreateLoginGroupParams
The name of the login group. This is used to identify the group when assigning it to bots.
Controls when the bot should authenticate to Google Meet.
"always"- Bot will always authenticate when joining a meeting"only_if_required"- Bot will only authenticate if the meeting requires it
Types
LoginMode
- always: The bot authenticates for every meeting, regardless of meeting requirements
- only_if_required: The bot only authenticates when the meeting host has restricted access to authenticated users
CreateLoginGroupParams
Example
Use Cases
Always Authenticate
UseloginMode: "always" when:
- Your bots need to join private or restricted meetings consistently
- You want to ensure a specific Google account identity for all meetings
- Compliance or security policies require authenticated access
Conditional Authentication
UseloginMode: "only_if_required" when:
- You want to minimize authentication overhead for public meetings
- Your bots join a mix of public and private meetings
- You want to preserve Google account rate limits
Response
The method returns a Promise that resolves with the created login group details. The exact response structure depends on the API implementation.Error Handling
Related
- Bot Types - Bot configuration that uses login groups
- Creating Bots - How to assign login groups to bots