Skip to content

adm_user_api

This document contains the API documentation for the adm_user_api package.

Adds a new user to the system

Signature:

procedure add_user (
p_username in adm_users.username%type,
p_role_id in adm_users.role_id%type
);

Parameters:

NameDirectionTypeDescription
p_usernameinadm_users.username%typeThe username for the new user
p_role_idinadm_users.role_id%typeThe role ID to assign to the user

Deactivates a user and cleans up all their shares

  • Sets the user as inactive (is_active = ‘N’)
  • Deletes all link shares for documents owned by the user
  • Deletes all document shares (both from and to the user)
  • Deletes all folder shares (both from and to the user)

Signature:

procedure deactivate_user (
p_username in adm_users.username%type
);

Parameters:

NameDirectionTypeDescription
p_usernameinadm_users.username%typeThe username to deactivate

Activates a previously deactivated user

Signature:

procedure activate_user (
p_username in adm_users.username%type
);

Parameters:

NameDirectionTypeDescription
p_usernameinadm_users.username%typeThe username to activate