sp_securityprofile

Lists the attributes or bindings associated with a login profile.

Syntax

sp_securityprofile ‘attributes’,‘login profile’,
	{wildcard | login_profile_name | ‘default’}
sp_securityprofile ‘bindings’, ‘login profile’
	[, {wildcard | login_profile_name | ‘default’} 
	[, ‘login’ ,{wildcard | login_name}]]
sp_securityprofile ‘help’ 

Parameters

Examples

Usage

Precedence rules are followed for attributes no set in profiles.

See also:
  • create login profile, alter login profile in Reference Manual: Commands

  • Applying Login Profile and Password Policy Attributes in the Security Administration Guide

  • sp_displaylogin

Permissions

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

SettingDescription
Enabled

With granular permissions enabled, you must be a user with manage any login profile privilege.

Disabled

With granular permissions disabled, you must be a user with sso_role to see attributes and bindings of all login profiles.

For a non-privileged login account:

  • You can only see the attributes of a login profile associated with the login (either directly or the default login profile).

  • You cannot see the bindings of a login profile with login accounts.

Auditing

Values in event and extrainfo columns from the sysaudits table are:

InformationValues
Event

38

Audit option

exec_procedure

Command or access audited

Execution of a procedure

Information in extrainfo
  • Roles – Current active roles

  • Keywords or options – NULL

  • Previous value – NULL

  • Current value – NULL

  • Other information – All input parameters

  • Proxy information – Original login name, if set proxy in effect