--- title: Database Logins, Users, and Roles ms.custom: "" ms.date: "03/04/2017" ms.prod: sql ms.prod_service: "mds" 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 --- # Database Logins, Users, and Roles (Master Data Services) [!INCLUDE[appliesto-ss-xxxx-xxxx-xxx-md-winonly](../includes/appliesto-ss-xxxx-xxxx-xxx-md-winonly.md)] [!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. For more information, see [Creating an Assembly](../relational-databases/clr-integration/assemblies/creating-an-assembly.md).

-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.| |**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|Permissions| |----------|-----------------|-----------------| |**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.|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 [Overview: Importing Data from Tables (Master Data Services)](../master-data-services/overview-importing-data-from-tables-master-data-services.md).| ## See Also [Database Object Security (Master Data Services)](../master-data-services/database-object-security-master-data-services.md)