Kristian Petersen via FreeIPA-users wrote:
> I did that before sending my initial email.  The command group_find()
> only appears to look for the group name that you tell it to search for. 
> I am looking for something that will give me a list of every group in
> IPA without knowing their names.  None of the group functions seem to
> provide this functionality.  I was hoping there was some other way of
> exporting a list of all of them from the server.

You just don't pass it a positional argument.

{u'params': [[], {u'version': u'2.215'}], u'method': u'group_find',
u'id': 0}

You can see the API in action with: ipa -vvv <command>

Note that there is no guarantee that this will return all groups. There
are still search limits both in IPA and within 389-ds. The cap IIRC in
LDAP is 2000 entries.

rob

> 
> On Fri, Nov 10, 2017 at 1:37 AM, Florence Blanc-Renaud <[email protected]
> <mailto:[email protected]>> wrote:
> 
>     On 11/09/2017 08:10 PM, Kristian Petersen via FreeIPA-users wrote:
> 
>         Hey all,
> 
>         Is there a way to get a list of all of the groups in FreeIPA
>         using the python API?
> 
>         -- 
>         Kristian Petersen
>         System Administrator
>         Dept. of Chemistry and Biochemistry
> 
> 
>         _______________________________________________
>         FreeIPA-users mailing list --
>         [email protected]
>         <mailto:[email protected]>
>         To unsubscribe send an email to
>         [email protected]
>         <mailto:[email protected]>
> 
> 
>     Hi,
> 
>     you can find all the commands provided by the API using the web GUI:
>     - login to https://server.domain.com/ipa/ui
>     <https://server.domain.com/ipa/ui>
>     - navigate to IPA Server > API Browser
>     From there you will be able to search for commands related to
>     "group" and group_find may be the one you are interested in.
>     The API browser will show you the arguments and options for each
>     command.
> 
>     HTH,
>     Flo
> 
> 
> 
> 
> -- 
> Kristian Petersen
> System Administrator
> Dept. of Chemistry and Biochemistry
> 
> 
> _______________________________________________
> FreeIPA-users mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
> 
_______________________________________________
FreeIPA-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to