Actions21
- Message Actions
- Group Actions
- Chat Actions
- Contact Actions
Group → Set Group Admin
AI-generatedOverview
This node operation sets a participant as a group admin in a WhatsApp group using the Green API. It is useful for managing group roles and permissions within WhatsApp groups, allowing automation of admin assignments without manual intervention. For example, it can be used to promote a participant to admin status when certain conditions are met in a workflow.
Use Case Examples
- Automatically assign admin rights to a participant when they join a group.
- Promote a trusted member to admin based on activity or role in the group.
Properties
| Name | Meaning |
|---|---|
| Group ID | The unique identifier of the WhatsApp group where the admin rights will be set for a participant. |
| Participant Chat ID | The chat ID of the participant who will be granted admin rights in the group. |
Output
JSON
response- The JSON response from the Green API confirming the admin rights have been set for the participant in the group.
Dependencies
- Requires Green API credentials including instance ID and API token for authentication.
Troubleshooting
- Common issues include invalid group ID or participant chat ID, which will cause the API request to fail.
- Errors such as 'Failed to set group admin' indicate problems with the API call or permissions; verify credentials and input parameters.
- File reading errors do not apply here since this operation does not involve file handling.
Links
- Green API Documentation - Set Group Admin - Official documentation for the Set Group Admin operation in Green API.