security-import-account
Imports a Sitecore user or role from the CM filesystem, overwriting current state with the serialized .user or .role file. Export the account first; on SitecoreAI use Sitecore CLI serialization.
Instructions
Imports (deserializes) a Sitecore user or role from the CM's filesystem, overwriting the account's current state with the serialized one. The .user / .role file must exist — export it first with security-export-account. On SitecoreAI prefer Sitecore CLI serialization.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Exact server-side .user / .role file to deserialize. Not with root. | |
| root | No | Server-side directory to deserialize from. Defaults to Sitecore's serialization folder. Not with path. | |
| identity | Yes | The account to import, e.g. 'sitecore\admin' or 'sitecore\Author'. | |
| accountType | Yes | Whether the identity names a user or a role. |