irods / python-irodsclient

A Python API for iRODS
Other
63 stars 73 forks source link

iadmin aua / lua #136

Open stdweird opened 6 years ago

stdweird commented 6 years ago

Is there a way to do 'iadmin aua' or 'iadmin lua' using the python API?

trel commented 6 years ago

For aua, I believe you can use the modify() method: https://github.com/irods/python-irodsclient/blob/master/irods/manager/user_manager.py#L65

Like this: https://github.com/irods/python-irodsclient/blob/master/irods/test/user_group_test.py#L104

The option you would pass is addAuth, similar to the call in the Jargon Java library: https://github.com/DICE-UNC/jargon/blob/master/jargon-core/src/main/java/org/irods/jargon/core/packinstr/GeneralAdminInp.java#L333

For lua, it may just be a General Query...