role import

The role import command imports role definitions, and their associated permissions, from the JSON file roles.json, which is defined using the role export command.

Usage

role import --f File
RequiredArgumentDescription
Yes--f FileSpecifies the name of the file containing the roles and permissions. If the role does not exist, it will be created with permissions from the file. If the role exists, it will be updated.

If you do not specify a path, the roles are imported from the location of the Administration Utility installation.

Example

This example imports roles to the RoleImports file.

role import --f RoleImports