grantroleauth

Description

Grants authorization to a given role to perform specific actions on the given entity. If the entity is a server, members of the role are granted permission to restart, refresh, or shutdown the server. If the entity is an application, Web application, servlet, or package, members of the role are granted access to those resources, including deploying the entity.

Syntax

Local mode support: Yes.

Command line:

grantroleauth [ connect-args | local-args ] [-role rolename]  \
   [-action actionname] entity

Ant build file:

<jag_grantroleauth [ role=”rolename”] [action=”actionname”] entity=”entity” />

Option

Description

Required

connect-args | local-args

Arguments to specify a connection to the server or to run in local mode. See “Local versus connected mode”.

Yes

role

The role id or name to which authorization is being granted. The role must exist on the server to which you are connected.

Yes

action

Only valid when the entity type is Server. Valid actions include restart, refresh and shutdown.

When the entity type is server.

entity

The name of the entity, in the form EntityType:EntityName. Valid entities are application, Webapplication, servlet, server, and package.

Yes

Examples

Example 1

This example grants access to the “Estore” application to members of the role named “test”.

jagtool grantroleauth -role test Application:Estore

See also

removeroleauth