Ask AI
Skip to main content

Remove a user from a group

Function: Remove a user from a group​

This action allows you to remove a specific user from a designated group within your application. This is useful for managing user permissions and access, for example, when a user's role changes or they no longer need access to certain features or data associated with that group. Removing a user from a group typically reduces their privileges.

Input​

  • Email (EMAIL, Required): The email address of the user you want to remove from a group.
  • Group (STRING, Required): The exact name of the group from which you wish to remove the user.

Output​

This action does not produce any direct output. It performs an operation in the background to update user group memberships.

Execution Flow​

Real-Life Examples​

  1. Example: Revoking temporary access

    • Scenario: A contractor, John Doe, was temporarily added to the "Project Alpha Access" group. Their contract has ended, and you need to remove their access to project-related resources.
    • Inputs:
      • Email: john.doe@example.com
      • Group: Project Alpha Access
    • Result: John Doe is removed from the "Project Alpha Access" group, revoking his access to resources associated with that group.
  2. Example: Changing a user's role

    • Scenario: Sarah, a team member, has moved from the "Sales Team" to the "Marketing Team". You need to remove her from the "Sales Team" group to update her permissions.
    • Inputs:
      • Email: sarah.smith@yourcompany.com
      • Group: Sales Team
    • Result: Sarah Smith is no longer a member of the "Sales Team" group, and her permissions related to that group are removed.
  3. Example: Correcting an accidental assignment

    • Scenario: An intern, Alex, was mistakenly added to the "Admins" group, granting him excessive privileges. You need to remove him from this high-privilege group immediately.
    • Inputs:
      • Email: alex.intern@yourcompany.com
      • Group: Admins
    • Result: Alex is removed from the "Admins" group, significantly reducing his administrative privileges within the application.