> For the complete documentation index, see [llms.txt](https://community-test.logicnets.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://community-test.logicnets.com/release-9/platform-documentation/system-administration/command-line-scripts/access-management-tasks.md).

# Access Management Tasks

## Description

With Release v7.4, LogicNets introduced a new command-line script that allows you to manage users, groups, and other elements. This access-management script is located in the *system/scripts* folder of your installation and is called *accessmanagement.bat* for Windows and [*accessmanagement.sh*](http://accessmanagement.sh) for CentOS. When you run this script without parameters or with the *–help* parameter the system returns the list of available commands and parameters.

## Use

When you run the access-management script, you have the options detailed below.

**Access Management**

accessmanagement \<adduser|removeuser|resetpassword|addgroup|removegroup|extaccountinfo|addextaccount|removeextaccount> \[]

| *--help* | *showing this help information* |
| -------- | ------------------------------- |

**Add User**

accessmanagement adduser \[ \[] \[] \[\<pass\_expires\_after\_n\_days>']] \[--createworkspace] \[--groups=\[,]]

| *company*                       | *Company in the installation*                                                                                                    |
| ------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
| *firstname*                     | *User's first name*                                                                                                              |
| *middlename*                    | *User's middle name*                                                                                                             |
| *lastname*                      | *User's last name*                                                                                                               |
| *email*                         | *User's email address*                                                                                                           |
| *password*                      | *Initial password. If this is left empty the system will generate a password.*                                                   |
| *status*                        | *Initial status. If this is left empty the system will set the status to 'active'.*                                              |
| *pass\_expires\_after\_n\_days* | *Number of days the password will be valid.* *If this is left empty the system will set the temporary password expiration time.* |
| *--createworkspace*             | *Create workspace.*                                                                                                              |
| --groups=\[,]                   | Comma-separated list of groups to which to add a user.                                                                           |

**Remove User**

accessmanagement removeuser \[]

| *company* | *Company in the installation* |
| --------- | ----------------------------- |
| *email*   | *User's email address*        |

**Reset Password**

accessmanagement resetpassword \[ \[]]

| *company*  | *Company in the installation*                                              |
| ---------- | -------------------------------------------------------------------------- |
| *email*    | *User's email address*                                                     |
| *password* | *New password. If this is left empty the system will generate a password.* |

**Add Group**

accessmanagement addgroup \[]

| *company*    | *Company in the installation* |
| ------------ | ----------------------------- |
| *group-name* | *Group name*                  |

**Remove Group**

accessmanagement removegroup \[]

| *company*    | *Company in the installation* |
| ------------ | ----------------------------- |
| *group-name* | *Group name*                  |

**Ext Account Info**

accessmanagement extaccountinfo

**Add Ext Account**

accessmanagement addextaccount \<plain-text|RS256> |

| *company*            | *Company in the installation*                                                        |
| -------------------- | ------------------------------------------------------------------------------------ |
| *url*                | *Base URL of the remote server*                                                      |
| *purpose*            | *Purpose of account. Use accessmanagement extaccountinfo to list possible purposes.* |
| *user-name*          | *User name*                                                                          |
| *password-type*      | *plain-text\|RS256*                                                                  |
| *password*           | *plain-text password or RS256 private key (PEM format)*                              |
| *-to-privatekey-pem* | *Path to file containing RS256 private key (PEM format)*                             |

**Remove Ext Account**

accessmanagement removeextaccount

| *company*   | *Company in the installation*   |
| ----------- | ------------------------------- |
| *url*       | *Base URL of the remote server* |
| *user-name* | *User name*                     |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://community-test.logicnets.com/release-9/platform-documentation/system-administration/command-line-scripts/access-management-tasks.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
