diff options
Diffstat (limited to 'docs/api-usage.rst')
-rw-r--r-- | docs/api-usage.rst | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/api-usage.rst b/docs/api-usage.rst index 85e4b1f..b6a498d 100644 --- a/docs/api-usage.rst +++ b/docs/api-usage.rst @@ -117,3 +117,13 @@ Use the ``all`` parameter to get all the items: .. code-block:: python all_groups = gl.groups.list(all=True) + +Sudo +==== + +If you have the administrator status, you can use ``sudo`` to act as another +user. For example: + +.. code-block:: python + + p = gl.projects.create({'name': 'awesome_project'}, sudo='user1') |