Returns the login profile ID of the specified login profile name, or the login profile ID of the login profile associated with the current login or the specified login name.
lprofile_id(name)
(Optional) login profile name or a login name.
If you specify a login profile name, lprofile_id returns the corresponding login profile ID. If you specify a login name, lprofile_id returns the associated (if any) login profile ID.
If you do not specify name, lprofile_id returns the login profile ID of the current login.
The permission checks for lprofile_id differ based on your granular permissions settings.
Granular permissions enabled |
With granular permissions enabled, any user can execute lprofile_id to return the ID of their own profile. You must have manage any login profile permission to execute lprofile_id and retrieve the profile ID of other users. |
Granular permissions disabled |
With granular permissions disabled, any user can execute lprofile_id to return the ID of their own profile. You must be a user with sso_role to execute lprofile_id and retrieve the profile ID of other users. |