YuChen Posted October 19, 2021 Report Share Posted October 19, 2021 Hi, I just found the revoke user security role example of this page doesn't work (for version 4.6.15): http://ftrack-python-api.rtd.ftrack.com/en/stable/example/security_roles.html An error says the "revoke_user_security_role" is an invalid actionand not sure if the document gives a wrong command. Also, the "session.call" doesn't work too, I think it should be "session._call". Are these issues just document error or there's any API update after version 4.6 ? Link to comment Share on other sites More sharing options...
Lorenzo Angeli Posted October 22, 2021 Report Share Posted October 22, 2021 Hi @YuChen session._call has been deprecated with api 2.0 SessionPrivate method Session._call() has been deprecated. You should now use the public method Session.call(). could you please what api version are you using ? you can simply check from a shell with: python -c 'import ftrack_api;print(ftrack_api.__version__);' I'll double check the example in the meanwhile with latest api 2.2.0 Cheers. L. Link to comment Share on other sites More sharing options...
Lorenzo Angeli Posted October 22, 2021 Report Share Posted October 22, 2021 Hi @YuChen looks like you found a bug in our documentation ! The actual action you need to use is : remove_user_security_role not revoke_user_security_role We are looking now into fixing the documentation, sorry for the time you spent and thanks for reporting it! Cheers. L. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now