Credentials
You can define a Credential and use it to determine who the Job will run as. A Credential has a Display Name, Logon Username, and a password. You can assign a Credential to a Job or a Folder. If you want to control a group of Jobs, you can assign a Credential at the Folder level to control all Jobs within the Folder. You can override the Credential on a Job within a Folder by setting a Credential on the specific Job.
Credentials can also be used for authenticating connections to remote services, including mail servers, FTP/SFTP servers, and SQL/Oracle databases. They can also be dynamically retrieved during a script execution.
The Execute As user is a property on the Job or inherited from a parent Folder. The ACL on the Credential determines which users can link a Job to use a Credential, update/delete the Credential, or retrieve its password. When a Job is submitted, it will run under the username of the Credential specified in this property.
To modify a JAMS Credential definition, you must have the appropriate level of permissions in the ACL to assign or change a Credential's properties.
Secret Providers
When you add a Credential, you choose where its secrets are stored. With JAMS, the default, the password and private key are stored in the JAMS database. With an external secret provider, such as Azure Key Vault, JAMS retrieves the username, password, and private key from the provider at runtime, using the identifiers you enter on the Credential.
A Credential can also be linked to a group Managed Service Account (gMSA) by selecting the Group Managed Service Account secret provider. A gMSA-linked Credential stores no password, key, or identifiers; Windows supplies the password when the Job logs on. It can only be used as the Execute As Credential for a Job or Folder. It cannot be used for mail, FTP/SFTP, or database connections, Integration Jobs, or anything else that needs JAMS to supply a password.
Please note the following:
- The Secret Provider can only be selected when you add a Credential. It cannot be changed afterward, so an existing Credential that needs to use a different secret provider must be recreated. The identifiers can be edited at any time.
- A Credential can use only one secret provider.
- Secret providers are set up on the JAMS Scheduler server, not in the Web Client.
For the Azure Key Vault setup steps, see Configuring a Secret Provider. For the gMSA prerequisites in Active Directory and on the machine that runs the Job, and for troubleshooting gMSA logons, see Group Managed Service Account Overview.
Credentials screen
The Credentials screen lets you view all existing Credentials, create new Credentials, and modify existing Credentials. Each Credential displays the following:
- Display Name – The name for the Credential that is displayed within JAMS objects, such as Jobs or Folders. This does not need to match the Logon Username.
- Logon Username – The actual username that is used for logging in.
- Description – An optional summary of the Credential.
- Last Change UTC – The date and time the Credential was added or changed.
To change the row density, or to see which list settings JAMS remembers, see Working with List Views.
Viewing all Credentials
- Click Environment in the left sidebar.
- Click Credentials. All Credentials are listed.
- Click a column heading to sort the list.
Adding a Credential
You can add a Credential within JAMS and set permissions as needed. However, adding an Access Control Entry (ACE) is available for only federated users. If you log in with the admin/service account, you cannot add ACEs.
- Click Environment in the left sidebar.
- Click Credentials.
- Click Add.
- In the Display Name field, enter a Credential Name. This may be the name used when logging on with these Credentials.
- In the Logon Username field, enter a Logon As name if the name used when logging on is different than the Credential Name. This field is disabled when you enter a Username Identifier in step 7.
- In the Secret Provider field, keep JAMS to store the secrets in JAMS, or select an external secret provider, such as Azure Key Vault or Group Managed Service Account. This cannot be changed after the Credential is saved.
- If you selected an external secret provider, enter the names of the secrets in the provider in the Username Identifier, Password Identifier, and Private Key Identifier fields as needed.
- If you selected Group Managed Service Account, the Username Identifier, Password Identifier, Private Key Identifier, Password, and Reenter Password fields are not shown. Instead, the note "Windows supplies this account's password at logon. Logon Username must be the managed service account, e.g. DOMAIN\account$." is shown. Make sure the Logon Username is the managed service account, then skip to step 9. Anything you entered in the hidden fields is discarded.
- In the Password and Reenter Password fields, enter a password. These fields are disabled when you enter a Password Identifier in step 7.
- Click Save & Continue.
- Click the Security tab.
- Click ADD to add an Access Control Entry (ACE).
- Search for an ACE to add. Only user accounts within the synchronized federation will be available from the search. For example, if you logged in with an account in the mycompany.com domain, you will see only user accounts from that same domain.
- Click Select.
- To add permissions, click the down arrow for the username.
- Use the checkboxes to select the appropriate access permissions.
- Change: includes permissions to edit the user account details.
- Get Password: includes permission to obtain a clear-text password using the Get-JAMSCredential PowerShell cmdlet or via the .NET API.
- Submit: grants the selected user account submission capabilities for a Job.
- Control: provides the ability to edit the user account's access control entry.
- Click Save.
Modifying a Credential
To modify a JAMS Credential definition, you must have the appropriate level of permissions in the ACL to assign or change a Credential's properties.
You can modify the Display Name, Logon Username, and Credential Description. If the Credential uses an external secret provider, you can also modify its identifiers.
- Click Environment in the left sidebar.
- Click Credentials.
- Click the name of the Credential you want to edit.
- On the Summary tab, you can edit the Display Name, Logon Username, or Description.
- The Secret Provider is shown as read-only, and reads JAMS for a Credential with no external secret provider. If the Credential uses an external secret provider, you can edit the Username Identifier, Password Identifier, or Private Key Identifier. When a Username Identifier is set, the Logon Username field is disabled. A gMSA-linked Credential has no identifiers, so only the Display Name, Logon Username, and Description can be edited.
- On the Security tab, you can edit the Access Control Entries to modify permissions for the groups/user accounts.
- Click Save.
Changing the Password for a Credential
If the Credential has a Password Identifier, the password is managed by the secret provider and Change is disabled. Change the password in the secret provider instead. A gMSA-linked Credential has no Password row, because Windows supplies its password.
- Click Environment in the left sidebar.
- Click Credentials.
- Click the name of the Credential you want to edit.
- On the Summary tab, click Change.
- In the New Password and Reenter Password fields, enter the new password.
- Click Save.
Deleting a Credential
Before you can delete a Credential, ensure there are no object referencing it. You can check this from the References tab on the Credential.
- Click Environment in the left sidebar.
- Click Credentials.
- Click the Credential you want to delete.
- Click Delete.
- When you are prompted to confirm the deletion, click Delete to confirm.
Key Management
If the Credential has a Private Key Identifier, the private key is managed by the secret provider and the Key Management controls are disabled. Manage the key in the secret provider instead.
The Key Management tab is not shown at all for a gMSA-linked Credential. Its tabs are Summary, Security, and References.
Generating a Key
You can generate RSA or DSA keys in JAMS.
- Click Environment in the left sidebar.
- Click Credentials.
- Click the Credential you want to edit.
- Click the Key Management tab.
- Click Generate Key. A dialog is displayed.
- In the Algorithm field, select RSA or DSA.
- In the Size field, select 512, 1024, 2048, or 4096. The options will vary based on the selected algorithm.
- Click OK.
- Click Save.
Clearing an Existing Key
You can clear an existing key and fingerprint from a Credential.
- Click Environment in the left sidebar.
- Click Credentials.
- Click the Credential you want to edit.
- Click the Key Management tab.
- Click Clear Key.
- Click Save.
Importing a Private Key
- Click Environment in the left sidebar.
- Click Credentials.
- Click the Credential you want to edit.
- Click the Key Management tab.
- Click Import. A dialog is displayed.
- Click Browse.
- Go to the location where the private key is saved.
- Click Open.
- Enter the password for the private key.
- Click OK.
Exporting a Public Key
You can export a public key to the OpenSSH, SSH2, and SSH2 Base64 formats.
- Click Environment in the left sidebar.
- Click Credentials.
- Click the Credential you want to edit.
- Click the Key Management tab.
- Click Export. A drop-down menu is displayed.
- Click Public Key. The Export Public Key dialog is displayed.
- In the Format field, select the format.
- Click OK. The key is exported and available in your local Downloads folder. It is saved in the following format: {credential-name}-public-key-{format}.pub
Exporting a Private Key
For private keys, you can export it with a passphrase in the Putty, OpenSSH, and PCKS #8 formats. Your Credential must have the Get Password permission to export a keypair.
- Click Environment in the left sidebar.
- Click Credentials.
- Click the Credential you want to edit.
- Click the Key Management tab.
- Click Export. A drop-down menu is displayed.
- Click Private Key. The Export Private Key dialog is displayed.
- In the Format field, select the format.
- In the New Password field, enter a password for the private key.
- In the Confirm Password field, enter the same password.
- Click OK. The key is exported and available in your local Downloads folder. It is saved in the following format: {credential-name}-private-key-{format}.{extension}
User Credential Tabs
The Last Change UTC timestamp on the right side of the breadcrumb bar, at the top of the page, shows the date and time in UTC that the Credential was last changed.
| Summary Tab | Description |
|---|---|
| Display Name | This property is the name for the Credential displayed in JAMS objects, such as Jobs or Folders. This does not need to match the Logon Username. |
| Logon Username | This property is the actual username that is used for logging in. |
| Description | This property is an optional summary of the Credential. |
| Password | This property is the password for the Credential. You can change this password as needed. This option is disabled if the Credential has a Password Identifier, and is not shown for a gMSA-linked Credential. |
| Secret Provider | This property is the secret provider that stores the Credential's secrets, such as JAMS, Azure Key Vault, or Group Managed Service Account. It is set when the Credential is added and is read-only afterward. For a Credential with no external secret provider, it reads JAMS, followed by the note "JAMS stores this Credential's password and key." For a gMSA-linked Credential, it is followed by the note "Windows supplies this account's password at logon. Logon Username must be the managed service account, e.g. DOMAIN\account$." |
| Username Identifier | This property is the name of the username secret in the secret provider. It is not shown for a gMSA-linked Credential. |
| Password Identifier | This property is the name of the password secret in the secret provider. It is not shown for a gMSA-linked Credential. |
| Private Key Identifier | This property is the name of the private key secret in the secret provider. It is not shown for a gMSA-linked Credential. |
| Key Management Tab | Description |
|---|---|
| Public Key | The Public Key section displays the current public key for the Credential. The Key Management controls are disabled if the Credential has a Private Key Identifier. The Key Management tab is not shown for a gMSA-linked Credential. |
| Fingerprint | The Public Key section displays the fingerprint of private key for the Credential. |
| Security Tab | Description |
|---|---|
| Security | The Security tab defines the level of access for this Credential. This is an Access Control List with one-to-many Access Control Entries (ACE). Each ACE can specify the following rights:
|
| References Tab | Description |
|---|---|
| References | The References tab lets you view where the Credential is used within JAMS. |