Leaving a space

Answered

Comments

4 comments

  • Andreas Haugstrup Pedersen

    You do not have permission to perform that operation. How are you authenticated? Is the user you are authenticated as an admin of the space? If you catch the exception you can get a human-readable error message.

    0
    Comment actions Permalink
  • Peter van den Broek

    I'm authenticated as myself, I loop over all available spaces, join them, perform some action and after this I want to leave those spaces again.

    So it's only my own user that has to leave the space after joining it. 

    0
    Comment actions Permalink
  • Peter van den Broek

    I get the following message: Only available for clients with a trust level of 2 or higher

    0
    Comment actions Permalink
  • Christian Holm

    Hi Peter

    This is a bit of a tricky case. We have to walk a fine line between allowing full functionality through our API and at the same time protect our users against rogue API clients. We are open by default, so unless we have a specific reason to limit access to an API method, we leave it open. However we do keep a small set of API operations off limits to most API clients. This list mostly includes API operations that deleting main objects like workspaces, but also includes leaving workspaces and removing members. This is to limit the amount of damage a third party API client can do even if they obtain the users consent through the normal OAuth flow.

    A way forward could be to explain in more detail what you are trying to achieve. Normally I wouldn't expect a user to join and then leave a workspace in short succession. If you want to keep it confidential you can contact us at support@podio.com.

    Christian

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk