REMOVE (Remove User from Group)

System environment

This command applies to both z/OS® and z/VM® systems.

Purpose

On both z/OS and z/VM, you can use the REMOVE command to remove a user from a group. In addition, on z/OS, you can use the REMOVE command to assign a new owner to any group data set profiles the user owns on behalf of that group.

Related Commands

Authorization Required

To use the REMOVE command, one of the following conditions must be true:
  • You have the SPECIAL attribute
  • The group profile is within the scope of a group in which you have the group-SPECIAL attribute
  • You are the owner of the group
  • You have JOIN or CONNECT authority in the group.
Note: If you only have ownership of the user's profile, you do not have sufficient authority to remove the user from a group.

Syntax

The OWNER operand used with the REMOVE command applies to z/OS systems only. In addition on z/OS, REMOVE can assign a new owner to each group dataset profile currently owned by the user being removed.

The complete syntax of the command is:

Parameters

userid
specifies the user you want to remove from the group. If you are removing more than one user from the group, you must enclose the list of user IDs in parentheses.

This value is required and must be the first operand following REMOVE.

GROUP(group-name)
specifies the group from which the user is to be removed. If you omit this operand, the default is your current connect group. The value specified for group-name cannot be the name of user's default group.
OWNER(userid or group-name)
Note: This operand applies to z/OS systems only.

OWNER specifies a RACF-defined user or group that will own the group data set profiles now owned by the user to be removed.

If you omit this operand when group data set profiles exist that require a new owner, RACF® does not remove the user from the group. (Group data set profiles are data set profiles whose names are qualified by the group name or begin with the value supplied by an installation exit.)

The new owner of the group data set profiles must have at least USE authority in the specified group. Do not specify a user who is being removed from the group as the new data set profile owner.

Examples

REMOVE Example for z/OS: