lprofile_name

Returns the login profile name of the specified login profile ID, or the login profile name of the login profile associated with the current login or the specified login suid.

Syntax

lprofile_id(ID)

Parameters

Examples

Usage

If you:
  • Specify a login profile ID – lprofile_name returns its corresponding login profile name. If you specify a login suid, lprofile_name returns the associated (if any) login profile name.

  • Do not specify IDlprofile_name returns the login profile name of the current login.

Standards

ANSI SQL – Compliance level: Transact-SQL extension.

Permissions

The permission checks for lprofile_name differ based on your granular permissions settings.

Granular PermissionsDescription
Enabled

With granular permissions enabled, any user can execute lprofile_name to return the profile name of their own profile. You must have manage any login profile permission to execute lprofile_name and retrieve the profile name of other users.

Disabled

With granular permissions disabled, any user can execute lprofile_name to return the profile name of their own profile. You must have sso_role to execute lprofile_name and retrieve the profile name of other users.

Related reference
lprofile_id