Sun GlassFish Enterprise Server v3 Administration Guide

ProcedureTo List File Groups

A group is a category of users classified by common traits, such as job title or customer profile. For example, users of an e-commerce application might belong to the customer group, and the big spenders might also belong to the preferred group. Categorizing users into groups makes it easier to control the access of large numbers of users. A group is defined for an entire server and realm. A user can be associated with multiple groups of users.

A group is different from a role in that a role defines a function in an application, while a group is a set of users who are related in some way. For example, in the personnel application there might be groups such as full-time, part-time, and on-leave. Users in these groups are all employees (the employee role). In addition, each user has its own designation that defines an additional level of employment.

Use the list-file-groups subcommand in remote mode to list groups for a file user, or all file groups if the --name option is not specified.

  1. Ensure that the server is running.

    Remote subcommands require a running server.

  2. List file groups by using the list-file-groups(1) subcommand.

Example 12–7 Listing Groups for a User

This example lists the groups for user joesmith.

asadmin> list-file-groups --name joesmith
Command list-file-groups executed successfully