--- title: "Database Logins, Users, and Roles (Master Data Services) | Microsoft Docs" ms.custom: "" ms.date: "03/06/2017" ms.prod: "sql-server-2014" ms.reviewer: "" ms.technology: master-data-services ms.topic: conceptual helpviewer_keywords: - "security [Master Data Services], database roles" - "database [Master Data Services], users" - "security [Master Data Services], database users" - "database [Master Data Services], roles" - "database [Master Data Services], logins" - "security [Master Data Services], database logins" ms.assetid: 72ee383e-a619-461b-9f9d-1cac162ab0c5 author: lrtoyou1223 ms.author: lle manager: craigg --- # Database Logins, Users, and Roles (Master Data Services) [!INCLUDE[ssMDSshort](../includes/ssmdsshort-md.md)] includes logins, users, and roles that are automatically installed on the [!INCLUDE[ssDEnoversion](../includes/ssdenoversion-md.md)] instance that hosts the [!INCLUDE[ssMDSshort](../includes/ssmdsshort-md.md)] database. These logins, users, and roles should not be modified. ## Logins |Login|Description| |-----------|-----------------| |`mds_dlp_login`|Allows creation of UNSAFE assemblies.

-Disabled login with randomly-generated password.

-Maps to dbo for the [!INCLUDE[ssMDSshort](../includes/ssmdsshort-md.md)] database.

-For msdb, mds_clr_user maps to this login.



For more information, see [Creating an Assembly](../relational-databases/clr-integration/assemblies/creating-an-assembly.md).| |`mds_email_login`|Enabled login used for notifications.

For msdb and the [!INCLUDE[ssMDSshort](../includes/ssmdsshort-md.md)] database, mds_email_user maps to this login.| ## msdb Users |User|Description| |----------|-----------------| |`mds_clr_user`|Not used.

Maps to mds_dlp_login.| |`mds_email_user`|Used for notifications.

Maps to mds_email_login.

Is a member of the role: DatabaseMailUserRole.| ## Master Data Services Database Users |User|Description| |----------|-----------------| |`mds_email_user`|Used for notifications.

Has SELECT permission for the mdm schema.

Has EXECUTE permission for the mdm.MemberGetCriteria user defined table type.

Has EXECUTE permission for the mdm.udpNotificationQueueActivate stored procedure.| |**mds_schema_user**|Owns the mdm and mdq schemas. The default schema is mdm.

Does not have a login mapped to it.| |**mds_ssb_user**|Used to execute Service Broker tasks.

Has DELETE, INSERT, REFERENCES, SELECT, and UPDATE permission all schemas.

Does not have a login mapped to it.| ## Master Data Services Database Role |Role|Description| |----------|-----------------| |`mds_exec`|This role contains the account you designate in [!INCLUDE[ssMDScfgmgr](../includes/ssmdscfgmgr-md.md)] when you create a [!INCLUDE[ssMDSmdm](../includes/ssmdsmdm-md.md)] web application and designate an account for the application pool. The mds_exec role has:

**EXECUTE** permission on all schemas.

**ALTER**, **INSERT**, and **SELECT** permission on these tables:
mdm.tblStgMember
mdm.tblStgMemberAttribute
mdm.tbleStgRelationship

**SELECT** permission on these tables:
mdm.tblUser
mdm.tblUserGroup
mdm.tblUserPreference

**SELECT** permission on these views:
mdm.viw_SYSTEM_SECURITY_NAVIGATION
mdm.viw_SYSTEM_SECURITY_ROLE_ACCCESSCONTROL
mdm.viw_SYSTEM_SECURITY_ROLE_ACCCESSCONTROL_MEMBER
mdm.viw_SYSTEM_SECURITY_USER_MODEL| ## Schemas |Role|Description| |----------|-----------------| |`mdm`|Contains all [!INCLUDE[ssMDSshort](../includes/ssmdsshort-md.md)] database and Service Broker objects other than the functions contained in the mdq schema.| |`mdq`|Contains [!INCLUDE[ssMDSshort](../includes/ssmdsshort-md.md)] database functions related to filtering member results based on regular expressions or similarity, and for formatting notification emails.| |**stg**|Contains [!INCLUDE[ssMDSshort](../includes/ssmdsshort-md.md)] database tables, stored procedures, and views related to the staging process. Do not delete any of these objects. For more information about the staging process, see [Data Import (Master Data Services)](overview-importing-data-from-tables-master-data-services.md).| ## See Also [Database Object Security (Master Data Services)](../../2014/master-data-services/database-object-security-master-data-services.md)