---
title: Set multiple attributes in a single ssoadm command
description: You can set multiple attributes in a single ssoadm command by using a text file or by specifying multiple attributes with the -a option.
component: pingam
version: 8
page_id: pingam:am-reference:cli-multiple-attributes
canonical_url: https://docs.pingidentity.com/pingam/8/am-reference/cli-multiple-attributes.html
keywords: ["Administration", "Attributes"]
page_aliases: ["reference:cli-multiple-attributes.adoc"]
section_ids:
  refsect1-cli-multiple-attributes-text: Text file
  refsect1-cli-multiple-attributes-a: The --attributevalues option
---

# Set multiple attributes in a single ssoadm command

You can set multiple attributes in a single `ssoadm` command by using a text file or by specifying multiple attributes with the `-a` option.

## Text file

1. Create a text file with each property on each line followed by a line feed and save the file for example, as `TEXT_FILE`:

   ```properties
   iplanet-am-session-max-session-time=150
   iplanet-am-session-max-idle-time=15
   iplanet-am-session-max-caching-time=5
   ```

2. Run the `ssoadm` command specifying the name of the file with the `--datafile` (`-D`) option:

   ```bash
   $ ./ssoadm set-attr-defs \
     --servicename iPlanetAMSessionService \
     --schematype dynamic \
     --adminid uid=amAdmin,ou=People,dc=am,dc=example,dc=com \
     --password-file passwordfile \
     --datafile TEXT_FILE
   ```

## The `--attributevalues` option

Run `ssoadm` using the `--attributevalues` (`-a`) option. Separate each attribute with a space:

```bash
$ ./ssoadm set-attr-defs \
  --servicename iPlanetAMSessionService \
  --schematype dynamic \
  --adminid uid=amAdmin,ou=People,dc=am,dc=example,dc=com \
  --password-file passwordfile \
  --attributevalues \
      iplanet-am-session-max-session-time=150 \
      iplanet-am-session-max-idle-time=15 \
      iplanet-am-session-max-caching-time=5
```
