Configuring user accounts for Java plugin authentication
- Last Updated: March 6, 2025
- 3 minute read
- Hybrid Data Pipeline
- Version 4.6
- Documentation
Once a Java plugin service has been registered, user accounts can be configured to use the service. As described in the following sections, user accounts can be configured through either the Web UI or the Users API.
Using the Web UI to configure a user account for Java plugin authentication
To create a new user account, take the following steps.
- Navigate to the Manage
Users view by clicking the manage users icon
. - Click + New User.
- Under the General tab, provide tenant, user name, and user role information.
- Click the Authentication Setup tab.
- Option 1. If you are adding the Java plugin service as an additional authentication type for the user account, click + Add Authentication Service.
- Option 2. If you want to use only the Java plugin service, modify the properties of the current authentication type.
- Select the Java plugin service from the Authentication Type dropdown.
- In the External Usernames field, specify the user or users you want to associate with the Hybrid Data Pipeline user account. Any user name provided should correspond to a user name persisted by the authentication service.
- Click Save.
To modify a current user account, take the following steps.
- Navigate to the Manage
Users view by clicking the manage users icon
. - From the list of user accounts, click the user account you want to modify.
- Click the Authentication Setup tab.
- Option 1. If you are adding the Java plugin service as an additional authentication type for the user account, click + Add Authentication Service.
- Option 2. If you want to use only the Java plugin service, modify the properties of the current authentication type.
- Select the Java plugin service from the Authentication Type dropdown.
- In the External Usernames field, specify the user or users you want to associate with the Hybrid Data Pipeline user account. Any user name provided should correspond to a user name persisted by the authentication service.
- Click Update to save your changes to the user account.
Using the Users API to configure a user account for Java plugin authentication
To create a new user, take the following steps.
The following POST operation creates a user account using an
external authentication service. Here the end user (user_external) authenticates via a Java plugin external authentication
service ("authServiceId": 43). This end user
inherits all the attributes associated with the testuser account. For further details, see Create a user account.
Request
POST https://MyServer:8443/api/admin/users
Request payload
{
"userName": "testuser",
"tenantId": 1,
"statusInfo": {
"status": 1,
"accountLocked": false
},
"passwordInfo": {
"passwordStatus": 1,
"passwordExpiration": "2020-01-01 00:00:00"
},
"permissions": {
"roles": [
2
]
},
"authenticationInfo": {
"authUsers": [
{
"authUserName": "user_external",
"authServiceId": 43
}
]
}
}
Response payload
Status code: 201
Successful response
{
"id": 4,
"userName": "testuser",
"tenantId": 1,
"statusInfo": {
"status": 1,
"accountLocked": false
},
"passwordInfo": {
"passwordStatus": 1,
"passwordExpiration": "2020-01-01 00:00:00"
},
"permissions": {
"roles": [
2
]
},
"authenticationInfo": {
"authUsers": [
{
"authUserName": "user_external",
"authServiceId": 43
}
]
}
}
To modify a current user account, take the following steps.
The following PUT operation updates user account
101 to use the a Java plugin external authentication service
("authServiceId": 43) for managing
authentication. Two end users (user_1 and user_2)
have been associated with the account. Their credentials are managed through the
authentication service that has ID 43. Each user inherits all the
attributes associated with user account 101. For further details,
see Update
authentication information on a user account.
Request
PUT https://MyServer:8443/api/admin/users/101/authinfo
Request payload
{
"authUsers": [
{
"authUserName": "user_1",
"authServiceId": 43
},
{
"authUserName": "user_2",
"authServiceId": 43
}
]
}
Response payload
Status code: 200
Successful response
{
"authUsers": [
{
"authUserName": "user_1",
"authServiceId": 43
},
{
"authUserName": "user_2",
"authServiceId": 43
}
]
}