Skip to content

adm_group_api

This document contains the API documentation for the adm_group_api package.

Creates a new user group

Signature:

procedure create_group (
p_group_name in adm_groups.group_name%type,
p_description in adm_groups.description%type,
po_group_id out nocopy adm_groups.group_id%type
);

Parameters:

NameDirectionTypeDescription
p_group_nameinadm_groups.group_name%typeThe name of the group to be created
p_descriptioninadm_groups.description%typeA description of the group’s purpose
po_group_idoutnocopy adm_groups.group_id%typeThe ID of the newly created group (output parameter)

Adds a user to a group

Signature:

procedure add_user_to_group (
p_group_id in adm_groups.group_id%type,
p_user_id in adm_users.user_id%type
);

Parameters:

NameDirectionTypeDescription
p_group_idinadm_groups.group_id%typeThe ID of the group
p_user_idinadm_users.user_id%typeThe ID of the user to add

Removes a user from a group

Signature:

procedure remove_user_from_group (
p_group_id in adm_groups.group_id%type,
p_user_id in adm_users.user_id%type
);

Parameters:

NameDirectionTypeDescription
p_group_idinadm_groups.group_id%typeThe ID of the group
p_user_idinadm_users.user_id%typeThe ID of the user to remove