Skip to content

Can not remove user from company #121

Description

@dlq84

Version info

  • intercom-go version: v2.0.0-20190319111853-1dbafb072bcd
  • Go version: 1.12.5

Expected behavior

When saving a user with one or more companies which has Remove set to true, I expect the user to be removed from that company as per API documentation:

To remove a company from a user add the field remove with a value of true to the embedded company object and submit the user as a update request. You must also submit the id of the company.
https://developers.intercom.com/intercom-api-reference/reference#companies-and-users

Actual behavior

The SDK doesn't even send that attribute:
https://github.com/intercom/intercom-go/blob/v2/company.go#L35

Steps to reproduce

  1. Try to save a user which has a company with Remove set to true
  2. See how nothing happens

Activity

  1. dlq84 commented on Jun 18, 2019

    @dlq84
    Author

    I'd be happy to make a PR if needed.

  2. ranjeet94 commented on Mar 27, 2024

    @ranjeet94

    Version info - 1.2

    When i send the request for detach a user from company in intercom api send us ok 200 along with some data but when i actually saw it on intercom user still persists in company . Could you please help me on this

    I am using API Call with PHP Laravel as backend

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions