Επεξεργασία

Κοινή χρήση μέσω


Grant permissions on data mining structures and models (Analysis Services)

Applies to: SQL Server Analysis Services Azure Analysis Services Fabric/Power BI Premium

By default, only an Analysis Services server administrator has permissions to view data mining structures or mining models in the database. Follow the instructions below to grant permissions to non-administrator users.

Set permissions to access a mining structure

  1. In SSMS, connect to Analysis Services. See Connect from client applications (Analysis Services) if you need help with the steps.

  2. Open the Databases folder, and select a database in Object Explorer.

  3. Right-click Roles and choose New Role.

  4. In the General page, enter a name, and optionally, a description. The page also contains several database permissions, such as Full Control, Process Database, and Read Definition. None of these permissions are needed for data mining access. See Grant database permissions (Analysis Services) for more information about database permissions.

  5. In the Mining Structure pane, select Read or Read/Write for each data mining structure.

  6. In the Membership pane, enter the Windows user and group accounts that connect to Analysis Services using this role.

  7. Click OK to finish creating the role.

Set permissions to access a mining model

For a data mining model, a role can have either Read or Read/Write permissions, as well as Drillthrough and Read Definition permissions that allow viewing and browsing the underlying data.

Note If you enable drillthrough on both the mining structure and the mining model, any user who is a member of a role that has drillthrough permissions on the mining model and the mining structure can also view columns in the mining structure, even if those columns are not included in the mining model. Therefore, to protect sensitive information, you should set up the data source view to mask personal information, and allow drillthrough access on the mining structure only when necessary.

To grant read or read/write permissions to a database role, a user must be a member of the SQL Server Analysis Services server role or a member of an SQL Server Analysis Services database role that has Full Control (Administrator) permissions.

  1. In SQL Server Management Studio, connect to the instance of SQL Server Analysis Services, expand Roles for the appropriate database in Object Explorer, and then click a database role (or create a new database role).

  2. In the Mining Structure pane, locate the mining model in the Mining Models list, and then select Read, Read/Write, Drill Through, or Browse for that mining model.

  3. In the Membership pane, enter the Windows user and group accounts that connect to Analysis Services using this role.

  4. Click OK to finish creating the role.

To use a data source in a drillthrough query that uses the Data Mining Extensions (DMX) OPENQUERY clause, the database role also needs read/write permission on the appropriate data source object. For more information, see Grant permissions on a data source object (Analysis Services) and OPENQUERY (DMX).

Note

By default, the submission of DMX queries by using OPENROWSET is disabled.

See Also

Grant server admin rights to an Analysis Services instance
Grant cube or model permissions (Analysis Services)
Grant custom access to dimension data (Analysis Services)
Grant custom access to cell data (Analysis Services)