You can add custom fields to users in the Developer Portal. In addition, the
custom fields can be exported.
Before you begin
You must have administrator access to complete this task.
About this task
You can add multiple various types of data to user records, such as department names, accounting
information, addresses, and additional custom information that you might want to collect from your
API consumers. The custom data that is added to user records can be collected and used by exporting.
By completing the tutorial, you can add custom fields to a user, and export the user records and
the field through a custom View.
Any custom fields that are added to a user will remain in the Developer Portal database.
Procedure
-
To add custom fields for a user:
-
On the administrator dashboard, click .
-
Enter Department number in the Label text field
for Add new field.
-
Select Integer from the Field type drop-down
list.
-
Ensure that Text field is selected from the
Widget list.
-
Click Save, then Save field settings.
You have added a custom field to your user record.
-
To enable the modules that allow user records and fields to be exported through a custom View:
-
On the administrator dashboard, click Modules.
-
Identify and enable the Views Data Export and Views
UI modules.
-
Click Save Configuration.
-
To add a View to export user records and fields:
-
On the administrator dashboard, click .
-
Click Add new view.
-
Enter Employee information in the View name text
field.
-
In the Show section, select Users from the first
drop-down list.
-
Click Continue & edit, then click Save.
-
To configure a page that can export data:
-
Under Displays in the Employee information (User)
view, adjacent to Page, click .
-
In the Data export settings section, click No path is
set.
-
In the text field, enter employee_information, then click
Apply.
-
In the Data export settings section, click None,
select the Page check box, then click Apply.
-
Click Save.
-
To configure the format in which your data is exported, and the fields that are exported:
-
In the Format section, click CSV file.
-
Select the XLS file radio button, click Apply,
-
Select the Provide as file check box, then click
Apply.
-
In the Fields section, click Add.
-
Select User from the Filter drop-down list, then
select the check boxes for the following fields from the list of available fields:
- User: Department number
- User: E-mail
- User: First name
- User: Last name
-
Click Apply (all displays), then click Apply (all
displays) for each field.
-
Click Save.
-
To export the user data that you have specified:
-
Enter the data export URL that you have specified.
For
example:
https://www.portal_host_name/employee_information
Results
You have exported the specified user data as an .xls file.