Lists the attributes or bindings associated with a login profile.
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’
sp_securityprofile 'attributes', 'login profile', 'default'
Name Value ------------ ---------------- login profile def_login_profile default yes default database master default language NULL login script NULL auto activated roles emp_role auto activated roles def_role manually activated roles special_role authenticate with ANY track lastlogin TRUE stale period 180D
sp_securityprofile 'attributes', 'login profile', '%'
Name Value ---------- ---------------- login profile def_login_profile default yes default database master default language NULL login script NULL auto activated roles emp_role auto activated roles def_role authenticate with ANY track lastlogin TRUE stale period 180D Name Value ----------- ---------------- login profile eng_login_profile default default database work login script engr_script auto activated roles emp_role auto activated roles def_role auto activated roles engr_role authenticate with LDAP Name Value ------------ ---------------- login profile mgr_login_profile default default database work login script mgr_script auto activated roles emp_role auto activated roles def_role auto activated roles mgr_role manually activated roles activate_emp_role authenticate with LDAP Name Value ------------- ---------------- login profile sa_login_profile manually activated roles admin_role default
sp_securityprofile 'bindings', 'login profile', 'engr_login_profile'
Login name Login profile name ----------- ---------------- anderson eng_login_profile gupta eng_login_profile lchang eng_login_profile tsato eng_login_profile
sp_securityprofile 'bindings', 'login profile', null, 'login', 'sa'
Login name Login profile name ----------- ---------------- sa sa_login_profile
Precedence rules are followed for attributes no set in profiles.
create login profile, alter login profile in Reference Manual: Commands
Applying Login Profile and Password Policy Attributes in the Security Administration Guide
sp_displaylogin
The permission checks for sp_securityprofile differ based on your granular permissions settings.
Setting | Description |
---|---|
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:
|
Values in event and extrainfo columns from the sysaudits table are:
Information | Values |
---|---|
Event | 38 |
Audit option | exec_procedure |
Command or access audited | Execution of a procedure |
Information in extrainfo |
|