Grants

abb_rws_client_python_rw6.rws.users.grants

RWS module: User Service → Operations on Users grants → Get User grants

1:1 mirror of the ABB RobotWare 6 REST API. Each function maps to exactly one HTTP endpoint. No composed logic — see highlevel/ for wrappers.

get_user_grants(client) async

Get User grants.

Route: GET /users/grants ABB constraints: Supported in bootserver mode

Parameters:
  • client (RWSClient) –

    Open RWSClient instance.

Returns:
  • Response –

    Raw HTTP response. Expected success: HTTP 200.

Raises:
Example
>>> await get_user_grants(client)
<Response [200]>
Source code in abb_rws_client_python_rw6/rws/users/grants.py
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
async def get_user_grants(client: RWSClient) -> httpx.Response:
    """
    Get User grants.

    Route: ``GET /users/grants``
    ABB constraints: Supported in bootserver mode

    Args:
        client: Open RWSClient instance.

    Returns:
        Raw HTTP response. Expected success: HTTP 200.

    Raises:
        RWSAuthenticationError: On HTTP 401.
        RWSNotFoundError: On HTTP 404.
        RWSHTTPError: On any other HTTP >= 400.

    Example:
        ```python
        >>> await get_user_grants(client)
        <Response [200]>
        ```
    """
    return await client.get("/users/grants")