# Users (*Users*) ## Overview ### Available Operations * [GetUsers](#getusers) - Get list of all connected users ## GetUsers Get list of all users that are friends and have library access with the provided Plex authentication token ### Example Usage ```csharp using LukeHagar.PlexAPI.SDK; using LukeHagar.PlexAPI.SDK.Models.Components; using LukeHagar.PlexAPI.SDK.Models.Requests; var sdk = new PlexAPI( accepts: LukeHagar.PlexAPI.SDK.Models.Components.Accepts.ApplicationXml, clientIdentifier: "3381b62b-9ab7-4e37-827b-203e9809eb58", product: "Plex for Roku", version: "2.4.1", platform: "Roku", platformVersion: "4.3 build 1057", device: "Roku 3", model: "4200X", deviceVendor: "Roku", deviceName: "Chrome", marketplace: "googlePlay", token: "" ); GetUsersRequest req = new GetUsersRequest() {}; var res = await sdk.Users.GetUsersAsync(req); // handle response ``` ### Parameters | Parameter | Type | Required | Description | | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | | `request` | [GetUsersRequest](../../Models/Requests/GetUsersRequest.md) | :heavy_check_mark: | The request object to use for the request. | | `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | ### Response **[GetUsersResponse](../../Models/Requests/GetUsersResponse.md)** ### Errors | Error Type | Status Code | Content Type | | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | | LukeHagar.PlexAPI.SDK.Models.Errors.GetUsersBadRequest | 400 | application/json | | LukeHagar.PlexAPI.SDK.Models.Errors.GetUsersUnauthorized | 401 | application/json | | LukeHagar.PlexAPI.SDK.Models.Errors.SDKException | 4XX, 5XX | \*/\* |