Add function to get user certification status
This function was requested by for the data curator application in HTAN. It is helpful for the shiny application they are building to inform users that they must be certified prior to uploading.
I confirmed with Jordan that I will add this: https://github.com/Sage-Bionetworks/synapsePythonClient/pull/801/files
The latest version returns False rather than generates a stack if the user hasn’t taken the quiz at all. e.g.
Thanks looks like the difference is a user who hasn’t taken the quiz (resulting in an (error) vs a user who has taken the quiz but failed (False).
can you review this PR when you have a chance?
Hi – I was able to test this successfully! I tested with usernames and userIDs of people who were certified and not and only the users who were certified returned a value of True.
Question: when I tested on a user that was not certified, I got an error message instead of a printout of False. Is this the expected behavior?
, , added a helper to the synapse client after you asked about this feature in Slack. Would you be willing to validate this functionality by installing and testing the release python client 2.3.0 release candidate?
You can install the release candidate e.g.
And you can invoke the method using the username or user_id e.g.
The doc for this function can be previewed here: