You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using pyocclient to administer users and groups. Creation, adding, and removing works well.
For some use case, I want to disable a user. The option that I found was via 'set_user_attribute'. This works for each changing the name of the user.
When I use get_user('name'), I get either the key-value-pair "'enabled': None" or "'enabled': '1'". In each case, I cannot change to the other option with "set_user_attribute('name', key='enabled', value=None)" or "oc.set_user_attribute('name', key='enabled', value='1')".
If you wonder why you might not have this key-value-pair, I am using the pyoclient for administering a Nextcloud. This works well with the provided functions. I think my question is still valid because the switch between 'None' and some value like '1' might still be a use case for owncloud user attributes.
Thanks for consideration!
The text was updated successfully, but these errors were encountered:
Hi,
I am using pyocclient to administer users and groups. Creation, adding, and removing works well.
For some use case, I want to disable a user. The option that I found was via 'set_user_attribute'. This works for each changing the name of the user.
When I use get_user('name'), I get either the key-value-pair "'enabled': None" or "'enabled': '1'". In each case, I cannot change to the other option with "set_user_attribute('name', key='enabled', value=None)" or "oc.set_user_attribute('name', key='enabled', value='1')".
If you wonder why you might not have this key-value-pair, I am using the pyoclient for administering a Nextcloud. This works well with the provided functions. I think my question is still valid because the switch between 'None' and some value like '1' might still be a use case for owncloud user attributes.
Thanks for consideration!
The text was updated successfully, but these errors were encountered: