Export (0) Print
Expand All

SPDataStore.ApplyUserPermissionsToDatasource method

Applies the current user’s permissions to a retrieved data source by setting the ReadOnly property and connection string visibility.

Namespace:  Microsoft.PerformancePoint.Scorecards.Store
Assembly:  Microsoft.PerformancePoint.Scorecards.Store (in Microsoft.PerformancePoint.Scorecards.Store.dll)

public DataSource ApplyUserPermissionsToDatasource(
	DataSource datasource
)

Parameters

datasource
Type: Microsoft.PerformancePoint.Scorecards.DataSource

The data source object to apply the current user's permissions to.

Return value

Type: Microsoft.PerformancePoint.Scorecards.DataSource
A clone of the specified data source object with the ReadOnly property set accordingly and with the connection string masked out if the user does not have edit permissions.

As a best practice, do not return a retrieved data source or expose its results directly to an external caller. Instead, call ApplyUserPermissionsToDatasource(DataSource) and pass in the retrieved data source. Then, return the results of ApplyUserPermissionsToDatasource(DataSource) to the external caller.

Community Additions

ADD
Show:
© 2014 Microsoft