Remove User from Group Azure AD activity

  • Release version: Washingtondc
  • Updated February 1, 2024
  • 1 minute to read
  • The Remove User from Group activity removes an existing user from a security group in Azure Active Directory.

    To access this activity in the Workflow Editor, select the Custom tab, and then navigate to Custom Activities > Azure AD. This activity was built with the REST web service activity template.

    Important:
    The REST message used for this activity must be configured to use OAuth 2.0.

    Input variables

    Table 1. Remove User from Group input variables
    Variable Description
    user_id Object ID (GUID) of the user to be removed.
    group_id Object ID (GUID) of the target group.

    Output variables

    Table 2. Remove User from Group output variables
    Variable Description
    error Returns the error string from the REST message. If there are no errors, this variable returns a null value.
    body Contains a string value representing the output from the REST message.
    status_code Contains the status code returned from the Web service.

    Conditions

    Table 3. Remove User from Group conditions
    Variable Description
    Success Activity removed the object ID from the security group.
    Failure Activity failed to update the group's membership, or the activity failed to connect to Azure AD.