Page History
...
Once a user has been created, the user's details can be retrieved using a web service call. The User ID field in the AdministrationPerson object is used to identify the user. As a result, a populated AdministrationPerson object will be returned. For security reasons, passwords will not be returned and will be NULL. User information can also be validated against the application in this section.
Anchor | ||||
---|---|---|---|---|
|
Expand | ||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||
This function retrieves an existing Yellowfin user's details. It accepts AdministrationPerson as a parameter where you can provide a user ID (email address or any other ID, depending on the Login ID method) to identify the user. For security reasons, passwords will not be returned and will be NULL. The response will contain the AdministrationPerson object with full user details.
Complete ExampleBelow is a complete example of the GETUSER function. To use it for yourself, carry out the following the steps:
|
Anchor | ||||
---|---|---|---|---|
|
Expand | |||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||
This functions retrieves details of all the users in a specified client organization. The information is retrieved in an array of AdministrationPerson objects. If a client organization is not specified, then all the users will be retrieved. You can use the setParameters() method to specify a searching criteria for users being retrieved. For security reasons, passwords will not be returned and will be NULL.
Complete ExampleBelow is a complete example of the GETALLUSERS function. To use it for yourself, carry out the following the steps:
|
Anchor |
---|
|
|
Expand |
---|
...
|
| ||||||||||||||||||||||||||||||||
This function validates a Yellowfin user. It accepts AdministrationPerson as a parameter where you can provide user ID (email address or Id depending on the Login ID method) and password to identify the user. The response will be SUCCESS if the user with provided details exists. The response will return code 25 (COULD_NOT_AUTHENTICATE_USER) if the user is not valid.
Here's an example of a basic request to call this function:
| ||||||||||||||||||||||||||||||||
Expand | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||
The following code will call the Yellowfin web service to retrieve a user’s details via their internal IpId:
This code will return an AdministrationPerson object with the user’s details and This function will retrieve the details of a particular user in Yellowfin by looking up their IP ID. The details in the AdministrationPerson object will be used in the retrieval process.
These are the parameters that you need to set in the AdministrationPerson object:
IpId|Integer|IP ID of the Yellowfin User| The response returned will contain these parameters:
|
Expand | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||
This function will retrieve users from Yellowfin based on a specific search string. This string is compared against the user’s first name, last name, and email address.
The response returned will contain these parameters:
|
...
title | VALIDATEUSER |
---|
The following code will call the Yellowfin web service to validate a user:
Code Block |
---|
AdministrationServiceRequest rsr = new AdminstrationServiceRequest();
AdministrationServiceResponse rs = null;
AdministrationPerson person = new AdministrationPerson();
person.setUserId("admin@yellowfin.com.au");
rsr.setLoginId(this.username);
rsr.setPassword(this.password);
rsr.setFunction("VALIDATEUSER");
rsr.setPerson(person);
rs = AdministrationService.remoteAdministrationCall(rsr);
|
This code will return an AdministrationPerson object of the particular user if successful; otherwise it will return an error message explaining why the user validation process failed.
This function will validate a specified Yellowfin user, checking if the user currently exists within the application. The details in the AdministrationPerson object will be used in the user validation process.
Request Element | Data Type | Description |
---|---|---|
LoginId | String | Login ID of the account used to connect to Yellowfin webservices eg. admin@yellowfin.com.au |
Password | String | Password of the account used to connect to Yellowfin webservices |
OrgId | Integer | Primary organisation ID within Yellowfin. Always set this to 1. |
Function = “VALIDATEUSER” |
| Web services function |
Person | AdministrationPerson | The AdministrationPerson object holding the Yellowfin user’s User ID for the retrieval process |
These are the parameters that you need to set in the AdministrationPerson object:
AdministrationPerson Element | Data Type | Description |
---|---|---|
UserId | String | User ID of the Yellowfin user. This can be the user ID or the email address, depending on the Logon ID method |
The response returned will contain these parameters:
...
Response Element
...
Data Type
...
Description
...
StatusCode
...
String
...
Status of the web service call. Possible values include:
- SUCCESS
- FAILURE
...
Person
...
AdministrationPerson
|
...
Expand | |||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||
The following code will call the Yellowfin web service to validate a user’s password:
This code will check if the password is expired and will return This function will validate a Yellowfin user’s password. The details in the AdministrationPerson object will be used in the password validation process.
These are the parameters that you need to set in the AdministrationPerson object:
The response returned will contain these parameters:
|
...