Revoking group membership

 Remove a user or group from another group (Sybase Central)

Removing a user or group from a group does not delete them from the database (or from other groups). To do this, you must delete the user/group itself.

When you add a user to a group, the user inherits all the inheritable permissions assigned to that group. SQL Anywhere does not allow you to revoke a subset of the permissions that a user inherits as a member of a group because you can only revoke permissions that are explicitly given by a GRANT statement. If you need to have different permissions for different users, you can create different groups with the appropriate permissions, or you can explicitly grant each user the permissions they require.

  1. Use the SQL Anywhere 12 plug-in to connect to the database as a user with DBA authority.

  2. Click Users & Groups.

  3. Double-click a user or group.

  4. In the Memberships pane, right-click a group and then click Remove Memberships.

Tip

You can also remove a user by double-clicking the group, clicking the Members tab in the right pane, right-clicking the user or group and clicking Remove Members.

 Remove a user or group from another group (SQL)

Removing a user or group from a group does not delete them from the database (or from other groups). To do this, you must delete the user/group itself.

When you add a user to a group, the user inherits all the inheritable permissions assigned to that group. SQL Anywhere does not allow you to revoke a subset of the permissions that a user inherits as a member of a group because you can only revoke permissions that are explicitly given by a GRANT statement. If you need to have different permissions for different users, you can create different groups with the appropriate permissions, or you can explicitly grant each user the permissions they require.

  1. Connect to the database as a user with DBA authority.

  2. Execute a REVOKE MEMBERSHIP IN GROUP statement, specifying the group and user name.

 See also
 Example