API call to set new member's role in organisation fails with 'no operation found'

Answered

Comments

4 comments

  • Casper Fabricius

    We removed the Set organization member role operation a while back. Unfortunately we forgot to remove the documentation for it.

    It has been replaced by two new methods:

    Sorry for the confusion.

    0
    Comment actions Permalink
  • Edmundas Mišeikis

    Thanks Casper, I suspected that the operation was removed from the API. I assume that the replacement method "Add organisation admin" cannot add users who do not yet belong to the organisation.

    I still have the related problem to solve.

    A few months ago you recommended to use request/accept membership API calls as a method to add a new user to a workspace:

    https://groups.google.com/d/msg/podio-api/X-zWCFRa9Rw/jdJXS9auELsJ

    It's even easier than suggested in this post since "Request Membership" returns the request id that can be immediately used by "Accept Membership", no notifications needed.

    However, the above approach works only with the users who already are members of the organization that owns the workspace. For other Podio users the membership request returns error:

    error: 'forbidden', error_description: 'The user with id nnn does not have the right view on org with id mmm'

    We are looking for a straighforward way to add existing Podio users as external members to a workspace including those from a different organisation. The operation would be performed under credentials of the new member to be added who requests the membership followed by another call under credentials of the admin of the workspace to accept the request.

    Similar action can be performed manually using Podio UI but we couldn't find a set of API calls to do the same. The removed "Set organisation member role" operation looked like the right way to achieve it. We don't ask for an operation to add new users to Podio, just a possibility for existing Podio users to access our workspace without the hassle of manual administration.

    Any suggestions?

    0
    Comment actions Permalink
  • Casper Fabricius

    We've had reservations about making the API method for adding people to work spaces publicly available , because it could potentially be used for spam. However, we are currently working on a more fine-grained level of control and checking for this method. We hope to be able make this available in a few weeks, and then you will be able to add existing Podio users to any of your work spaces, but not invite new users to Podio - at least not without getting extra permissions, which is something we handle on a case by case basis.

    I can't share the documentation with you before we make the method public, but if you want to get an idea of how it works you can look in our Ruby client - we also use this internally, so it already calls the method: https://github.com/podio/podio-rb/blob/master/lib/podio/models/space_invitation.rb#L44

    0
    Comment actions Permalink
  • Edmundas Mišeikis

    Thanks Casper,

    great news. I'm looking forward to use the new method. Podio API is already very powerful and this addition makes it even better.

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk