All URIs are relative to https://backend.id4i.de
| Method | HTTP request | Description |
|---|---|---|
| addUserRoles | POST /api/v1/organizations/{organizationId}/users/{username}/roles | Add role(s) to user |
| completeRegistration | PUT /account/registration | Complete registration |
| findUserByUsername | GET /api/v1/users/{username} | Find by username |
| findUsers | GET /api/v1/users | Find users |
| getAllOrganizationRoles | GET /api/v1/organizations/{organizationId}/roles | List users and their roles |
| getOrganizationsOfUser | GET /api/v1/user/organizations | Retrieve organizations of user |
| getUserRoles | GET /api/v1/organizations/{organizationId}/users/{username}/roles | Get user roles by username |
| getUsersOfOrganization | GET /api/v1/organizations/{organizationId}/users | Find users in organization |
| inviteUsers | POST /api/v1/organizations/{organizationId}/users/invite | Invite Users |
| listAllRoles | GET /api/v1/roles | List roles |
| login | POST /login | |
| registerUser | POST /account/registration | Register user |
| removeUserRoles | DELETE /api/v1/organizations/{organizationId}/users/{username}/roles | Remove role(s) from user |
| requestPasswordReset | POST /account/password | Request password reset |
| verifyPasswordReset | PUT /account/password | Verify password reset |
| verifyUserRegistration | POST /account/verification | Verify registration |
addUserRoles(organizationId, username, changeRoleRequest)
Add role(s) to user
var Id4iApi = require('id4i_api');
var defaultClient = Id4iApi.ApiClient.instance;
// Configure API key authorization: Authorization
var Authorization = defaultClient.authentications['Authorization'];
Authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Authorization.apiKeyPrefix = 'Token';
var apiInstance = new Id4iApi.AccountsApi();
var organizationId = "organizationId_example"; // String | The namespace of the organization
var username = "username_example"; // String | username
var changeRoleRequest = new Id4iApi.ChangeRoleRequest(); // ChangeRoleRequest | changeRoleRequest
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.addUserRoles(organizationId, username, changeRoleRequest, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| organizationId | String | The namespace of the organization | |
| username | String | username | |
| changeRoleRequest | ChangeRoleRequest | changeRoleRequest |
null (empty response body)
- Content-Type: application/xml, application/json
- Accept: application/xml, application/json
completeRegistration(completeRegistration)
Complete registration
Completing a registration e.g. for invited users. Finish registration with a username and a password.
var Id4iApi = require('id4i_api');
var apiInstance = new Id4iApi.AccountsApi();
var completeRegistration = new Id4iApi.CompleteUserRegistrationRequest(); // CompleteUserRegistrationRequest | Contains the verification token, the username and the initial password.
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.completeRegistration(completeRegistration, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| completeRegistration | CompleteUserRegistrationRequest | Contains the verification token, the username and the initial password. |
null (empty response body)
No authorization required
- Content-Type: application/xml, application/json
- Accept: application/xml, application/json
UserPresentation findUserByUsername(username)
Find by username
var Id4iApi = require('id4i_api');
var defaultClient = Id4iApi.ApiClient.instance;
// Configure API key authorization: Authorization
var Authorization = defaultClient.authentications['Authorization'];
Authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Authorization.apiKeyPrefix = 'Token';
var apiInstance = new Id4iApi.AccountsApi();
var username = "username_example"; // String | username
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.findUserByUsername(username, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| username | String | username |
- Content-Type: application/xml, application/json
- Accept: application/xml, application/json
PaginatedResponseOfUserPresentation findUsers(opts)
Find users
var Id4iApi = require('id4i_api');
var defaultClient = Id4iApi.ApiClient.instance;
// Configure API key authorization: Authorization
var Authorization = defaultClient.authentications['Authorization'];
Authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Authorization.apiKeyPrefix = 'Token';
var apiInstance = new Id4iApi.AccountsApi();
var opts = {
'usernamePrefix': "usernamePrefix_example", // String |
'offset': 56, // Number | Start with the n-th element
'limit': 56 // Number | The maximum count of returned elements
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.findUsers(opts, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| usernamePrefix | String | [optional] | |
| offset | Number | Start with the n-th element | [optional] |
| limit | Number | The maximum count of returned elements | [optional] |
PaginatedResponseOfUserPresentation
- Content-Type: application/xml, application/json
- Accept: application/xml, application/json
PaginatedResponseOfUserRoles getAllOrganizationRoles(organizationId, opts)
List users and their roles
Listing users and their roles in a paginated manner.
var Id4iApi = require('id4i_api');
var defaultClient = Id4iApi.ApiClient.instance;
// Configure API key authorization: Authorization
var Authorization = defaultClient.authentications['Authorization'];
Authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Authorization.apiKeyPrefix = 'Token';
var apiInstance = new Id4iApi.AccountsApi();
var organizationId = "organizationId_example"; // String | organizationId
var opts = {
'offset': 56, // Number | Start with the n-th element
'limit': 56 // Number | The maximum count of returned elements
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getAllOrganizationRoles(organizationId, opts, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| organizationId | String | organizationId | |
| offset | Number | Start with the n-th element | [optional] |
| limit | Number | The maximum count of returned elements | [optional] |
- Content-Type: application/xml, application/json
- Accept: application/xml, application/json
PaginatedResponseOfOrganization getOrganizationsOfUser(opts)
Retrieve organizations of user
var Id4iApi = require('id4i_api');
var defaultClient = Id4iApi.ApiClient.instance;
// Configure API key authorization: Authorization
var Authorization = defaultClient.authentications['Authorization'];
Authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Authorization.apiKeyPrefix = 'Token';
var apiInstance = new Id4iApi.AccountsApi();
var opts = {
'role': "role_example", // String | role
'offset': 56, // Number | Start with the n-th element
'limit': 56 // Number | The maximum count of returned elements
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getOrganizationsOfUser(opts, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| role | String | role | [optional] |
| offset | Number | Start with the n-th element | [optional] |
| limit | Number | The maximum count of returned elements | [optional] |
PaginatedResponseOfOrganization
- Content-Type: application/xml, application/json
- Accept: application/xml, application/json
PaginatedResponseOfstring getUserRoles(organizationId, username, opts)
Get user roles by username
var Id4iApi = require('id4i_api');
var defaultClient = Id4iApi.ApiClient.instance;
// Configure API key authorization: Authorization
var Authorization = defaultClient.authentications['Authorization'];
Authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Authorization.apiKeyPrefix = 'Token';
var apiInstance = new Id4iApi.AccountsApi();
var organizationId = "organizationId_example"; // String | The namespace of the organization
var username = "username_example"; // String | username
var opts = {
'offset': 56, // Number | Start with the n-th element
'limit': 56 // Number | The maximum count of returned elements
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getUserRoles(organizationId, username, opts, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| organizationId | String | The namespace of the organization | |
| username | String | username | |
| offset | Number | Start with the n-th element | [optional] |
| limit | Number | The maximum count of returned elements | [optional] |
- Content-Type: application/xml, application/json
- Accept: application/xml, application/json
PaginatedResponseOfUserPresentation getUsersOfOrganization(organizationId, opts)
Find users in organization
Finding users in the specified organization in a paginated manner.
var Id4iApi = require('id4i_api');
var defaultClient = Id4iApi.ApiClient.instance;
// Configure API key authorization: Authorization
var Authorization = defaultClient.authentications['Authorization'];
Authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Authorization.apiKeyPrefix = 'Token';
var apiInstance = new Id4iApi.AccountsApi();
var organizationId = "organizationId_example"; // String | organizationId
var opts = {
'offset': 56, // Number | Start with the n-th element
'limit': 56 // Number | The maximum count of returned elements
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getUsersOfOrganization(organizationId, opts, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| organizationId | String | organizationId | |
| offset | Number | Start with the n-th element | [optional] |
| limit | Number | The maximum count of returned elements | [optional] |
PaginatedResponseOfUserPresentation
- Content-Type: application/xml, application/json
- Accept: application/xml, application/json
inviteUsers(organizationId, invitationList)
Invite Users
var Id4iApi = require('id4i_api');
var defaultClient = Id4iApi.ApiClient.instance;
// Configure API key authorization: Authorization
var Authorization = defaultClient.authentications['Authorization'];
Authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Authorization.apiKeyPrefix = 'Token';
var apiInstance = new Id4iApi.AccountsApi();
var organizationId = "organizationId_example"; // String | The namespace of the organization where users should be invited
var invitationList = new Id4iApi.OrganizationUserInvitationListRequest(); // OrganizationUserInvitationListRequest | invitationList
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.inviteUsers(organizationId, invitationList, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| organizationId | String | The namespace of the organization where users should be invited | |
| invitationList | OrganizationUserInvitationListRequest | invitationList |
null (empty response body)
- Content-Type: application/xml, application/json
- Accept: application/xml, application/json
PaginatedResponseOfRole listAllRoles(opts)
List roles
Listing of roles.
var Id4iApi = require('id4i_api');
var defaultClient = Id4iApi.ApiClient.instance;
// Configure API key authorization: Authorization
var Authorization = defaultClient.authentications['Authorization'];
Authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Authorization.apiKeyPrefix = 'Token';
var apiInstance = new Id4iApi.AccountsApi();
var opts = {
'privilege': "privilege_example", // String | If specified the roles will be filtered containing that privilege.
'offset': 56, // Number | Start with the n-th element
'limit': 56 // Number | The maximum count of returned elements
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.listAllRoles(opts, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| privilege | String | If specified the roles will be filtered containing that privilege. | [optional] |
| offset | Number | Start with the n-th element | [optional] |
| limit | Number | The maximum count of returned elements | [optional] |
- Content-Type: application/xml, application/json
- Accept: application/xml, application/json
login(accountCredentials)
ID4i API Login
var Id4iApi = require('id4i_api');
var apiInstance = new Id4iApi.AccountsApi();
var accountCredentials = new Id4iApi.AccountCredentials(); // AccountCredentials |
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.login(accountCredentials, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| accountCredentials | AccountCredentials |
null (empty response body)
No authorization required
- Content-Type: application/xml, application/json
- Accept: application/xml, application/json
UserRegistrationResponse registerUser(userRegistration)
Register user
Registering a new user.
var Id4iApi = require('id4i_api');
var apiInstance = new Id4iApi.AccountsApi();
var userRegistration = new Id4iApi.UserRegistrationRequest(); // UserRegistrationRequest | The user information about the new created user.
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.registerUser(userRegistration, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| userRegistration | UserRegistrationRequest | The user information about the new created user. |
No authorization required
- Content-Type: application/xml, application/json
- Accept: application/xml, application/json
removeUserRoles(organizationId, username, changeRoleRequest)
Remove role(s) from user
var Id4iApi = require('id4i_api');
var defaultClient = Id4iApi.ApiClient.instance;
// Configure API key authorization: Authorization
var Authorization = defaultClient.authentications['Authorization'];
Authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Authorization.apiKeyPrefix = 'Token';
var apiInstance = new Id4iApi.AccountsApi();
var organizationId = "organizationId_example"; // String | The namespace of the organization
var username = "username_example"; // String | username
var changeRoleRequest = new Id4iApi.ChangeRoleRequest(); // ChangeRoleRequest | changeRoleRequest
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.removeUserRoles(organizationId, username, changeRoleRequest, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| organizationId | String | The namespace of the organization | |
| username | String | username | |
| changeRoleRequest | ChangeRoleRequest | changeRoleRequest |
null (empty response body)
- Content-Type: application/xml, application/json
- Accept: application/xml, application/json
SimpleMessageResponse requestPasswordReset(resetRequest)
Request password reset
Requesting a reset for a new password.
var Id4iApi = require('id4i_api');
var apiInstance = new Id4iApi.AccountsApi();
var resetRequest = new Id4iApi.PasswordResetRequest(); // PasswordResetRequest | Contains the required information to request a new password.
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.requestPasswordReset(resetRequest, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| resetRequest | PasswordResetRequest | Contains the required information to request a new password. |
No authorization required
- Content-Type: application/xml, application/json
- Accept: application/xml, application/json
SimpleMessageResponse verifyPasswordReset(verificationRequest)
Verify password reset
Setting a new password and verifying the request to set the password.
var Id4iApi = require('id4i_api');
var apiInstance = new Id4iApi.AccountsApi();
var verificationRequest = new Id4iApi.PasswordResetVerificationRequest(); // PasswordResetVerificationRequest | Contains the new password and the verification token to set the new password.
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.verifyPasswordReset(verificationRequest, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| verificationRequest | PasswordResetVerificationRequest | Contains the new password and the verification token to set the new password. |
No authorization required
- Content-Type: application/xml, application/json
- Accept: application/xml, application/json
verifyUserRegistration(token)
Verify registration
Verifies a new user registration.
var Id4iApi = require('id4i_api');
var apiInstance = new Id4iApi.AccountsApi();
var token = new Id4iApi.RegistrationVerificationTokenPresentation(); // RegistrationVerificationTokenPresentation | The token for user verification.
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.verifyUserRegistration(token, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| token | RegistrationVerificationTokenPresentation | The token for user verification. |
null (empty response body)
No authorization required
- Content-Type: application/xml, application/json
- Accept: application/xml, application/json