Skip to content

hubcli role allow

Grants permission for one or more actions on a given object, replacing any previous grant permission for the same object.

The command has the following format:

hubcli role allow [flags] rolename

flags
One or more optional flags that provide additional control over execution of the command.

The following flags is mandatory:

--object string
Specifies the name of the object for which permission is granted.

The following flags are optional:

--actions action-list
Specifies one or more comma-separated actions to allow for the role specified by rolename. By default, all actions are allowed.
-c string or --connection string
Specifies the name of the connection to use. If you do not specify this option, then the default connection is used. If there is no default connection, then you must specify a connection. The first connection created for the Altair SLC Hub instance is set by default as the default Hub instance, but a different default connection can be set using the hubcli connection use command.
--debug
Enables debug logging.
-h or --help
Returns help information for this command.
--matcher string
The object matcher to use; this can be simple, doublestar, regex or hierarchy. The default is simple. For information on matchers, see Role permissions
rolename
The name of the role for which object permissions are to be granted. The role must already exist. You can check that a role exists using the hubcli role list command.