[Freeipa-users] ipa python client - group_remove_member
Rob Crittenden
rcritten at redhat.com
Thu Mar 3 14:35:01 UTC 2016
bahan w wrote:
> Hello everyone !
>
> I send you this mail because I'm using the python libraries and I'm
> encountering a blocking problem when trying to use the
> api.Command['group_remove_member'] command.
>
> I don't really know what is the syntax of this command.
> I know how to make work the api.Command['user_show'](username) work but
> I don't really know for the group_remove_member.
>
> What is the right syntax for this function ? What may I put in the xxx
> below ?
> api.command['group_remove_member'](u'group1')xxx
res = api.Command.group_remove_member(u'somegroup', user=u'someuser')
Removing non-members will not raise an exception. You need to look at
the failed entry in the result returned.
rob
More information about the Freeipa-users
mailing list