invite user or list of users to a team

Description

Would be a nice feature to have.

Invite either by email or user id or user name.

Environment

None

Activity

Show:
Thomas Yu
October 28, 2019, 8:30 PM
Edited

Ah, the function that you should actually test is: syn.invite_to_team. Perhaps all of those functions should be prefaced with _. Functions that start with _ are meant to signify hidden functions. The function you were supposed to test chains all of these functions you tested together to resolve #2

Robert Allaway
October 28, 2019, 8:33 PM

oooh. Whoops. I am familiar with .function in R , I didn’t realize that _function was the python equivalent. If these are not supposed to be used by the end user I agree they should all be hidden, not just _delete…

 

Thomas Yu
October 28, 2019, 8:42 PM
Edited
Robert Allaway
October 28, 2019, 8:44 PM

Ok, I just tested invite_to_team - works fine for me!

One thing that was a little disconcerting is that it returns nothing if an invitation is not sent, but that was pretty easy to figure out.

Thomas Yu
October 28, 2019, 8:50 PM
Edited

Edit: Good idea, printing out why invitation not sent:
https://github.com/Sage-Bionetworks/synapsePythonClient/pull/707

Assignee

Thomas Yu

Reporter

Kenneth Daily

Labels

None

Validator

Robert Allaway

Development Area

None

Release Version History

None

Fix versions

Priority

Major
Configure