All URIs are relative to https://localhost:4993/api/v1
Method | HTTP request | Description |
---|---|---|
UsersGet | GET /users | Gets the user list. |
UsersIdDelete | DELETE /users/{id} | Delete a user. |
UsersIdFiltersGet | GET /users/{id}/filters | Gets the filters for a user. |
UsersIdFiltersPut | PUT /users/{id}/filters | Update the filters for a user. |
UsersIdGet | GET /users/{id} | Gets a specified user. |
UsersIdGroupsGet | GET /users/{id}/groups | Gets a list of groups. |
UsersIdGroupsPut | PUT /users/{id}/groups | Updates a user's list of groups. |
UsersIdPut | PUT /users/{id} | Update an existing user. |
UsersIdRolesGet | GET /users/{id}/roles | Gets the roles for a user. |
UsersIdRolesPut | PUT /users/{id}/roles | Updates the roles for a user. |
UsersPost | POST /users | Adds a user. |
UserListResponse UsersGet (string email = null, string username = null, bool? enabled = null, string sort = null, int? offset = null, int? limit = null)
Gets the user list.
Returns the list of users.
using System;
using System.Diagnostics;
using Qlik.NPrinting.Rest.Client.Api;
using Qlik.NPrinting.Rest.Client.Client;
using Qlik.NPrinting.Rest.Client.Model;
namespace Example
{
public class UsersGetExample
{
public void main()
{
IAdSyncConfig adSyncconf = new AdSyncConfigTest();
var nprintingApiClient = NPrintingApiFactory.GetNPrintingApiClient(adSyncconf);
var apiInstance = new UsersApi(nprintingApiClient);
var email = email_example; // string | The email of the user to be used as a filter. (optional)
var username = username_example; // string | The username to use as a filter. (optional)
var enabled = true; // bool? | Indicates whether to retrieve the active users (true) or inactive users (false). (optional)
var sort = sort_example; // string | A comma separated list of fields to be used for sorting the users. Allowed field values are \"name\" and \"created\". Fields can be prefixed by \"+\" and \"-\" to indicate, respectively, ascending and descending order. Usage example: /users?sort=+name,-created (optional)
var offset = 56; // int? | The number of entries to skip. Default is 0. (optional) (default to 0)
var limit = 56; // int? | The maximum number of entries to return. Default is 50. (optional) (default to 50)
try
{
// Gets the user list.
UserListResponse result = apiInstance.UsersGet(email, username, enabled, sort, offset, limit);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling UsersApi.UsersGet: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
string | The email of the user to be used as a filter. | [optional] | |
username | string | The username to use as a filter. | [optional] |
enabled | bool? | Indicates whether to retrieve the active users (true) or inactive users (false). | [optional] |
sort | string | A comma separated list of fields to be used for sorting the users. Allowed field values are "name" and "created". Fields can be prefixed by "+" and "-" to indicate, respectively, ascending and descending order. Usage example: /users?sort=+name,-created | [optional] |
offset | int? | The number of entries to skip. Default is 0. | [optional] [default to 0] |
limit | int? | The maximum number of entries to return. Default is 50. | [optional] [default to 50] |
Authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void UsersIdDelete (string id)
Delete a user.
Delete the user specified by the id
parameter.
using System;
using System.Diagnostics;
using Qlik.NPrinting.Rest.Client.Api;
using Qlik.NPrinting.Rest.Client.Client;
using Qlik.NPrinting.Rest.Client.Model;
namespace Example
{
public class UsersIdDeleteExample
{
public void main()
{
IAdSyncConfig adSyncconf = new AdSyncConfigTest();
var nprintingApiClient = NPrintingApiFactory.GetNPrintingApiClient(adSyncconf);
var apiInstance = new UsersApi(nprintingApiClient);
var id = id_example; // string | The ID of the user to delete.
try
{
// Delete a user.
apiInstance.UsersIdDelete(id);
}
catch (Exception e)
{
Debug.Print("Exception when calling UsersApi.UsersIdDelete: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | string | The ID of the user to delete. |
void (empty response body)
Authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List<Guid?> UsersIdFiltersGet (string id)
Gets the filters for a user.
Returns the ordered list of filter IDs for the specified user. Note that the filter sequence, in general, is not commutative, so the order will affect the result.
using System;
using System.Diagnostics;
using Qlik.NPrinting.Rest.Client.Api;
using Qlik.NPrinting.Rest.Client.Client;
using Qlik.NPrinting.Rest.Client.Model;
namespace Example
{
public class UsersIdFiltersGetExample
{
public void main()
{
IAdSyncConfig adSyncconf = new AdSyncConfigTest();
var nprintingApiClient = NPrintingApiFactory.GetNPrintingApiClient(adSyncconf);
var apiInstance = new UsersApi(nprintingApiClient);
var id = id_example; // string | The ID of the user.
try
{
// Gets the filters for a user.
GenericIdListDataResponse result = apiInstance.UsersIdFiltersGet(id);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling UsersApi.UsersIdFiltersGet: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | string | The ID of the user. |
Authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void UsersIdFiltersPut (string id, List body)
Update the filters for a user.
Updates the ordered list of filter IDs for the specified user. Note that the filter sequence, in general, is not commutative, so the order will affect the result.
using System;
using System.Diagnostics;
using Qlik.NPrinting.Rest.Client.Api;
using Qlik.NPrinting.Rest.Client.Client;
using Qlik.NPrinting.Rest.Client.Model;
namespace Example
{
public class UsersIdFiltersPutExample
{
public void main()
{
IAdSyncConfig adSyncconf = new AdSyncConfigTest();
var nprintingApiClient = NPrintingApiFactory.GetNPrintingApiClient(adSyncconf);
var apiInstance = new UsersApi(nprintingApiClient);
var id = id_example; // string | The ID of the user
var body = ; // List<Guid> | The ordered list of the filters for the specified user.
try
{
// Update the filters for a user.
apiInstance.UsersIdFiltersPut(id, body);
}
catch (Exception e)
{
Debug.Print("Exception when calling UsersApi.UsersIdFiltersPut: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | string | The ID of the user | |
body | List<Guid?> | The ordered list of the filters for the specified user. |
void (empty response body)
Authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserResponseEntry UsersIdGet (string id)
Gets a specified user.
Returns the user specified by the id
parameter.
using System;
using System.Diagnostics;
using Qlik.NPrinting.Rest.Client.Api;
using Qlik.NPrinting.Rest.Client.Client;
using Qlik.NPrinting.Rest.Client.Model;
namespace Example
{
public class UsersIdGetExample
{
public void main()
{
IAdSyncConfig adSyncconf = new AdSyncConfigTest();
var nprintingApiClient = NPrintingApiFactory.GetNPrintingApiClient(adSyncconf);
var apiInstance = new UsersApi(nprintingApiClient);
var id = id_example; // string | The ID of the user to return.
try
{
// Gets a specified user.
UserResponseEntry result = apiInstance.UsersIdGet(id);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling UsersApi.UsersIdGet: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | string | The ID of the user to return. |
Authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List<Guid?> UsersIdGroupsGet (string id, int? offset = null, int? limit = null)
Gets a list of groups.
Returns the list of groups for the user specified by the id
parameter.
using System;
using System.Diagnostics;
using Qlik.NPrinting.Rest.Client.Api;
using Qlik.NPrinting.Rest.Client.Client;
using Qlik.NPrinting.Rest.Client.Model;
namespace Example
{
public class UsersIdGroupsGetExample
{
public void main()
{
IAdSyncConfig adSyncconf = new AdSyncConfigTest();
var nprintingApiClient = NPrintingApiFactory.GetNPrintingApiClient(adSyncconf);
var apiInstance = new UsersApi(nprintingApiClient);
var id = id_example; // string | The ID of the user to return groups for.
var offset = 56; // int? | The number of entries to skip. Default is 0. (optional) (default to 0)
var limit = 56; // int? | The maximum number of entries to return. Default is 50. (optional) (default to 50)
try
{
// Gets a list of groups.
GenericIdListDataResponse result = apiInstance.UsersIdGroupsGet(id, offset, limit);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling UsersApi.UsersIdGroupsGet: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | string | The ID of the user to return groups for. | |
offset | int? | The number of entries to skip. Default is 0. | [optional] [default to 0] |
limit | int? | The maximum number of entries to return. Default is 50. | [optional] [default to 50] |
Authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void UsersIdGroupsPut (string id, List body)
Updates a user's list of groups.
Updates the unordered list of group IDs for the specified user.
using System;
using System.Diagnostics;
using Qlik.NPrinting.Rest.Client.Api;
using Qlik.NPrinting.Rest.Client.Client;
using Qlik.NPrinting.Rest.Client.Model;
namespace Example
{
public class UsersIdGroupsPutExample
{
public void main()
{
IAdSyncConfig adSyncconf = new AdSyncConfigTest();
var nprintingApiClient = NPrintingApiFactory.GetNPrintingApiClient(adSyncconf);
var apiInstance = new UsersApi(nprintingApiClient);
var id = id_example; // string | The ID of the user.
var body = ; // List<Guid> | The unordered list of groups for the specified user.
try
{
// Updates a user's list of groups.
apiInstance.UsersIdGroupsPut(id, body);
}
catch (Exception e)
{
Debug.Print("Exception when calling UsersApi.UsersIdGroupsPut: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | string | The ID of the user. | |
body | List<Guid> | The unordered list of groups for the specified user. |
void (empty response body)
Authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void UsersIdPut (string id, Body1 body)
Update an existing user.
Update the user specified by the id
parameter.
using System;
using System.Diagnostics;
using Qlik.NPrinting.Rest.Client.Api;
using Qlik.NPrinting.Rest.Client.Client;
using Qlik.NPrinting.Rest.Client.Model;
namespace Example
{
public class UsersIdPutExample
{
public void main()
{
IAdSyncConfig adSyncconf = new AdSyncConfigTest();
var nprintingApiClient = NPrintingApiFactory.GetNPrintingApiClient(adSyncconf);
var apiInstance = new UsersApi(nprintingApiClient);
var id = id_example; // string | The ID of the user object to update.
var body = new UserUpdateRequest(); // UserUpdateRequest | The user details to update.
try
{
// Update an existing user.
apiInstance.UsersIdPut(id, body);
}
catch (Exception e)
{
Debug.Print("Exception when calling UsersApi.UsersIdPut: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | string | The ID of the user object to update. | |
body | UserUpdateRequest | The user details to update. |
void (empty response body)
Authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GenericIdListDataResponse UsersIdRolesGet (string id)
Gets the roles for a user.
Returns the ordered list of role IDs for the specified user.
using System;
using System.Diagnostics;
using Qlik.NPrinting.Rest.Client.Api;
using Qlik.NPrinting.Rest.Client.Client;
using Qlik.NPrinting.Rest.Client.Model;
namespace Example
{
public class UsersIdRolesGetExample
{
public void main()
{
AdSyncConfig adSyncconf = new AdSyncConfigTest();
var nprintingApiClient = NPrintingApiFactory.GetNPrintingApiClient(adSyncconf);
var apiInstance = new UsersApi(nprintingApiClient);
var id = id_example; // string | The ID of the user.
try
{
// Gets the roles for a user.
GenericIdListDataResponse result = apiInstance.UsersIdRolesGet(id);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling UsersApi.UsersIdRolesGet: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | string | The ID of the user. |
Authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void UsersIdRolesPut (string id, List<Guid?> body)
Updates the roles for a user.
Updates the list of role IDs for the specified user.
using System;
using System.Diagnostics;
using Qlik.NPrinting.Rest.Client.Api;
using Qlik.NPrinting.Rest.Client.Client;
using Qlik.NPrinting.Rest.Client.Model;
namespace Example
{
public class UsersIdRolesPutExample
{
public void main()
{
AdSyncConfig adSyncconf = new AdSyncConfigTest();
var nprintingApiClient = NPrintingApiFactory.GetNPrintingApiClient(adSyncconf);
var apiInstance = new UsersApi(nprintingApiClient);
var id = id_example; // string | The ID of the user.
var body = ; // List<Guid> | The unordered list of roles for the specified user.
try
{
// Updates the roles for a user.
apiInstance.UsersIdRolesPut(id, body);
}
catch (Exception e)
{
Debug.Print("Exception when calling UsersApi.UsersIdRolesPut: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | string | The ID of the user. | |
body | List<Guid> | The unordered list of roles for the specified user. |
void (empty response body)
Authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void UsersPost (UserRequest userRequest)
Adds a user.
Adds a new user, and returns its ID.
using System;
using System.Diagnostics;
using Qlik.NPrinting.Rest.Client.Api;
using Qlik.NPrinting.Rest.Client.Client;
using Qlik.NPrinting.Rest.Client.Model;
namespace Example
{
public class UsersPostExample
{
public void main()
{
AdSyncConfig adSyncconf = new AdSyncConfigTest();
var nprintingApiClient = NPrintingApiFactory.GetNPrintingApiClient(adSyncconf);
var apiInstance = new UsersApi(nprintingApiClient);
var userRequest = new UserRequest(); // UserRequest | The details about the user to add.
try
{
// Adds a user.
apiInstance.UsersPost(userRequest);
}
catch (Exception e)
{
Debug.Print("Exception when calling UsersApi.UsersPost: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
userRequest | UserRequest | The details about the user to add. |
void (empty response body)
Authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]