Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device.
Atlassian cookies and tracking notice, (opens new window)
Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
/
Add and Edit Users in Batch Mode
Published Jan 07

Add and Edit Users in Batch Mode

Jan 07, 2026
Subscribe

Access-cli supports adding and editing users in batch mode, importing data from JSON or CSV files. Batch operations on users use the common batch mode flags.

  • JSON files should contain an array of objects, each containing the fields for each user one wishes to add or edit.

  • CSV files should be comma-separated. They must contain a header, specifying the fields and their order, followed by the records (one per line).

When editing users, unspecified and non-mandatory fields remain unchanged.

Fields

The expected fields for each format are as follows:

JSON Field Name

JSON Type

CSV Field Name

Example

Description

Mandatory

id

integer

ID

123

ID of the user to edit. Used only when editing

When editing

name

string

Name

John Doe

Name of the user

When adding

email

string

Email

john@site.com

Email address of the user

No

group_ids

integer array

GroupIds

[12,56]

User group IDs. In CSV, surround by quotes

No

enabled

boolean

Enabled

true

Whether the user is enabled

No

send_email
_invitation

boolean

SendEmail
Invitation

false

Whether to send an email invitation. Used only when adding

No

File Examples

Field order can be different from what is shown in the examples, and non-mandatory fields can be omitted. When using CSV, make sure to specify the correct field order in the header, and to maintain the order and number of fields consistent throughout each line.

Adding Users
JSON
[ { "name": "User 1", "email": "1@example.com", "group_ids": [34,56], "enabled": true, "send_email_invitation": false }, { "name": "User 2", "email": "2@example.com", "group_ids": [], "enabled": true, "send_email_invitation": true } ] $ access-cli users add --from-file=example.json
CSV
Name,Email,GroupIds,Enabled,SendEmailInvitation User 1,1@example.com,"[34,56]",true,false User 2,2@example.com,[],true,true

$ access-cli users add --from-file=example.csv --file-format=csv
 

Editing Users
JSON
[ { "id": 12, "name": "User 1", "email": "1@example.com", "group_ids": [], "enabled": false }, { "id": 34, "name": "User 2", "email": "2@example.com", "group_ids": [34,56], "enabled": true } ]

$ access-cli users edit --from-file=example.json

CSV
ID,Name,Email,GroupIds,Enabled 12,User 1,1@example.com,[],false 34,User 2,2@example.com,"[34,56]",true

$ access-cli users edit --from-file=example.csv --file-format=csv

 


We value your feedback.
If you have questions, suggestions, or feedback on our documentation, contact the Campus Product Documentation team.
For general product inquiries or technical support, please contact the global Barracuda Support team.

🔍 Discover Our Product Documentation

Barracuda CloudGen Access
Results will update as you type.
  • Getting Started
  • Deployment
  • CloudGen Access Console
  • CloudGen Access Application
  • CloudGen Access User Directory Connector
  • CloudGen Access Proxy
  • CloudGen Access CLI Client
    • How to Set the CloudGen Access Console Endpoint
    • How to Use the Admin API
    • Batch Mode Operations
      • Add and Edit Users in Batch Mode
      • Add and Edit Groups in Batch Mode
      • Add and Edit Resources in Batch Mode
      • Add and Edit Proxies in Batch Mode
      • Add and Edit Policies in Batch Mode
      • Add Domains in Batch Mode
    • Using access-cli
    • Configuration File
    • Credentials File
  • FAQ
  • Best Practices
  • Maintenance
  • Troubleshooting
  • Release Notes
  • Glossary
  • Security Advisories

    You‘re viewing this with anonymous access, so some content might be blocked.
    {"serverDuration": 11, "requestCorrelationId": "d67057e4a36e441fb5127ed53f50254c"}