Manage Business Connectivity Service Applications
In SharePoint Online, you can create Business Connectivity Services (BCS) connections to data sources, such as SQL Azure databases or Windows Communication Foundation (WCF) web services, that are outside the SharePoint site. Once you've created these connections, you can manage or edit BCS information on the SharePoint admin center site. You can log on to the SharePoint admin center site directly, or log on to the Office 365 admin center and then move to the SharePoint admin center.
SharePoint Online uses BCS together with Secure Store Services to access and retrieve data such as BDC Models from external data systems. To learn more about BCS, see SharePoint Online planning guide for Office 365.
In this article
Manage BCS permissions
Note: For information about how to set up BCS, see the MSDN SharePoint Online Developer Center.
After setup is complete, user permissions control access to the data that the connection provides. BCS has two types of permissions:
-
Object permissions
-
Metadata Store permissions
Object permissions
Object permissions apply only to a specific External System, BDC Model, or External Content Type (ECT). Each ECT is a securable object. For example, if you have an ECT called WCFBookSales, object permissions apply only to the WCFBookSales object, and not to any other ECT that might be defined.
To set object permissions for an object, follow these steps.
-
Sign in to Office 365 with your SharePoint Online admin account.
-
Go to the SharePoint admin center.
-
Select bcs.
-
In the business data catalog section, select Manage BDC Models and External Content Types.
-
Select the check box next to the name of the ECT or external system that you want to manage.
-
On the ribbon, select Set Object Permissions.
-
Enter a user account or group name in the text box, and then select Add. You can also select Browse to look for the name that you want.
-
Select the name of the account or group for which you want to set access to the ECT or external system. You can set permissions for only one account at a time. If you have multiple accounts or groups, you have to set levels of access for each account separately, by selecting them one at a time.
The following table describes the permissions and their associated access levels.
Permission | Notes |
Edit | Allows the user or group to create External Systems and BDC Models, to import BDC Models, and to Export BDC Models. This setting should be reserved for highly privileged users. |
Execute | Allows the user or group to execute operations (create, read, update, delete, or query) on ECTs. |
Selectable in clients | Allows the user or group to create external lists for any ECTs, and to view the ECTs in the external item picker. |
Set permissions | Allows the user, group, or claim to set permissions on the Metadata Store. At least one user or group must have this permission on every BCS connection so that permissions management can occur. With this permission, a user can grant Edit permissions to the Metadata Store. This setting should be reserved for highly privileged users |
Metadata Store Permissions
Metadata Store permissions apply globally to the whole BCS store. That is, they apply to all BDC Models, external systems, ECTs, methods, and methods instances that are defined for that external data system. You can set permissions on the metadata store to determine who can edit items and set permissions for the store.
Metadata Store permissions apply to many objects, such as BDC Models, ECTs, and external systems. Because Metadata Store permissions can replace object permissions, they must be managed carefully. When applied with forethought, Metadata Store permissions can grant access quickly and completely.
To set Metadata Store permissions, follow these steps.
-
Sign in to Office 365 with your SharePoint Online admin account.
-
Go to the SharePoint admin center.
-
Select bcs.
-
In the business data catalog section, select Manage BDC Models and External Content Types.
-
On the ribbon, select Set Metadata Store Permissions.
-
Enter a user account or group into the text box, and then select Add. You can also select Browse to look for the account that you want.
-
The account or group will appear in the second text box. If you have multiple accounts or groups, you must select them one at a time to set the level of access.
Permission
Notes
Edit
Allows the user or group to create External Systems and BDC Models, to import BDC Models, and to export BDC Models. This setting should be reserved for highly privileged users.
Execute
Allows the user or group to execute operations (create, read, update, delete, or query) on ECTs.
Selectable in clients
Allow the user or group to create external lists for any ECTs, and to view the ECTs in the external item picker.
Set Permissions
Allows the user, group, or claim to set permissions on the Metadata Store.
At least one user or group must have this permission on every BCS connection so that permissions management can occur.
With this permission, a user can grant Edit permissions to the Metadata Store. This setting should be reserved for highly privileged users.
-
To propagate permissions to all items in the Metadata Store, select Propagate permissions to all BDC Models, External Systems and External content types in the BDC Metadata Store. If you select this option, you'll replace all existing permissions (including object permissions) that you may have set anywhere else in your selected BCS Application.
Import or export a Business Data Connectivity (BDC) Model
The BDC Model view allows a user to import and export the underlying framework for the business data connection. This is very useful if you have to re-create the connection in a new environment. A BDC Model file can be imported to create an ECT connection to an external system.
You can import or export two types of model files:
Model Exports the XML metadata for a selected system.
Resource Exports the localized names, properties, and permissions for a selected system.
Note: You can create a BDC Model using XML code. If you do so, it's important to know that you cannot use the authentication modes RevertToSelf and PassThrough with SharePoint Online. Although you might be able to import a BDC Model that was written in XML, the connection will not be usable.
Import a BDC Model
When you import a BDC Model, you also import its specified permissions. Before you import a BDC Model, it's a good idea to understand how imported permissions interact with existing permissions.
Imported permissions for a BDC Model are added to the store of existing permissions in the BDC service. If an entry for an object already exists in the access control list, the existing value is overwritten with the permissions information from the imported file.
To import a BDC Model, follow these steps:
-
Sign in to Office 365 with your SharePoint Online admin account.
-
Go to the SharePoint admin center.
-
Select bcs.
-
In the business connectivity services section, select Manage BDC Models and External Content Types.
-
On the ribbon, select Import.
-
In the BDC Model section, enter the name of the BDC Model File. The Model name must not include any special characters, such as ~ " # % & * : < > ? \ { | } or the character 0x7f. You can also select Browse to locate the *.bdcm file for a BDC Model.
-
In the File Type section, select Model or Resource as the file type that you want to import.
-
In the Advanced Settings section, choose one or more of the following resources to import:
-
Localized names to import localized names for the ECTs in a particular locale. Imported localized names are merged with the existing localized names by Business Data Connectivity.
-
Properties to import properties for ECTs. Imported properties are merged with the existing property descriptions by Business Data Connectivity.
-
Permissions to import permissions for ECTs and other securable objects in the model.
-
(Optional) To save the resource settings in a file for later use, type a name for the resource file in the Use Custom Environment Settings text box.
-
Select Import.
Export a BDC Model
You can export a BDC Model and then read its contents to determine differences between connections. This can be useful if you are troubleshooting. You can also import an exported BDC Model file into another environment for testing or reuse.
To export a BDC Model or Resource file, follow these steps:
-
Sign in to Office 365 with your SharePoint Online admin account.
-
Go to the SharePoint admin center.
-
Select bcs.
-
Select Manage BDC Models and External Content Types.
-
Select the drop down list and select BDC Model in the View group.
-
Select the name of the BDC Model that you want to export and then select Export in the ribbon.
-
On the Business Data Connectivity Models page, select the model or resource file to export.
-
On the Export page, in the File Type section, select Model or Resource to specify the type of file that you want to export.
-
In the Advanced Settings section, select one or more of the following to further refine the data export.
-
Select Localized names to export localized names for the ECTs in a particular locale.
-
Select Properties to export properties for ECTs.
-
Select Permissions to export permissions for ECTs.
-
Select Proxies to export an implementation-specific proxy that is used to connect to the external system.
-
-
If you saved a file of resource settings for later use, type the name of the file to export in the Use Custom Environment Settings field.
-
Select Export to start a dialog that enables you to save a *.bdcm file to your local drive. You can open the *.bdcm file in a text editor.
Add actions to external content types
By adding actions to ECTs, administrators associate a uniform resource locator (URL) with an ECT. This automatically starts a specified program or opens a specified web page.
Actions can specify parameters that are based on one or more fields in an ECT. For example, you can create an action for an ECT that specifies a Search page URL. The parameter for this action might be the ID of an item in the external data source. This would allow you to specify a custom action for the ECT that automates search for this item.
Note: When you add a new action to an ECT, that action is not added to existing external lists for that ECT. The action is only available in new external lists for the ECT.
To add an action to an ECT, follow these steps.
-
Sign in to Office 365 with your SharePoint Online admin account.
-
Go to the SharePoint admin center.
-
Select bcs.
-
Select Manage BDC Models and External Content Types.
-
Point to the name of the ECT to which you want to add an action, and then select the arrow that appears. From the menu, select Add Action to open the Add Action page.
-
In the Name field, give the action a meaningful name.
-
In the URL field, enter the URL that you want the action to open.
Note: Under the control, you can find an example URL. The example shows how to add one (or more) parameter place-holders such as {0}, or {1} (http://www.adventure-works.com/sample.aspx?p0={0}&p1={1} ).
-
If you want web parts on the site to be able to use this new action, choose one of the following options:
Command | Action |
Yes | Starts the action in a new browser window (preserves the page context). |
No | Starts the action in the same browser window. |
-
In the URL Parameters field, specify any parameters that are required by the URL. Notice that these are numbered in the interface starting at 0.
-
Decide if you want to use an Icon or not. This field also allows you to use Standard icons.
-
If you want the action to be the default action, select the Default Action check box.
Important: Parameters can contain personally identifying information such as names and Social Security numbers. When you design an action, be careful not to use fields that display personally identifying information.
View external data and external data settings
You use the View section of the ribbon to choose different views of BCS connections. The three views display information about the BCS connection in different ways, and give you access to different actions. It is important to become familiar with these views because some tasks are available only in specific views.
The three view options are BDC Models, External Systems, and External Content Types, as shown in the following illustration.
For more information about how you can use these views to help manage BCS, see the sections that follow.
External Content Types view
By default, the BCS connection uses the External Content Types view. This view shows Service Application Information, and lists the following information:
-
ECT name
-
ECT display name
-
ECT type namespace
-
Namespace version
-
External system name
For most processes in BCS, this view is sufficient. However, if there are many ECTs, this view can be difficult to navigate.
External Systems view
The External Systems view shows a BCS connection in terms of its system of origin. This view is useful if you want to know the BCS connection information after you create the BCS. In this view, you can see the property settings for a named External System. In addition, you can configure some of the property settings.
View property settings
The name of the External System appears on this page as a selectable link (a navigable URL). You can select the URL to open a window that shows the original property settings for that store. In addition, if you are connected to SQL Azure, you can see the database server name and database, in this view.
Depending on the type of BCS connection, the property settings can include any combination of the following items:
-
Access Provider (such as WCF Service)
-
Authentication Mode (such as User's Identity)
-
Database Server
-
Impersonation Level (such as None, Anonymous, Identification, Impersonation, Delegation)
-
Initial Database name
-
Integrated Security (such as SSPI)
-
Secure Store Implementation
-
Secure Store Target Application ID (as the ID entered in Secure Store)
-
Service EndPoint Address (such as the URL pointing to SomeWCFService.svc)
-
Connection Pooling (Active/Inactive)
-
Secondary Secure Store Target Application ID
-
Secure Store Implementation
Configure property settings
If you point to an External System Name, you can open a shortcut menu that includes a Settings command. This is useful for SharePoint Online connections that use Windows Communication Foundation (WCF) Web Services. By selecting the Settings option from the menu, you can configure any of the following settings:
-
Metadata Exchange URL
-
Metadata Exchange Discovery Mode
-
Web Services Description Language (WDSL) Authentication Mode
-
WSDL Secure Store Target Application Id
-
Secure Store Implementation.
BDC Model view
The BDC Model view offers ribbon commands that enable you to import or export BDC Models. In addition, the BDC Model view can make it easier to move around in a very large collection of ECTs. Because the BDC Model shows hyperlinks for each distinct connection, rather than showing all ECTs for each connection, it can make a more manageable list.
If you want to see all the ECTs for a BDC Model, you just select the name of the Model. Then, if you select the name of an ECT, you open a table that shows the fields that are defined for the ECT. It resembles the following table.
Name | Type | Display by Default |
Order Id | System.String | No |
Employee Id | System.String | No |
Freight | System.Nullable '1[[System.Decimal, .... | No |
This display can closely mirror the layout of the data source connected via an ECT, and give better insight into the structure of the underlying data.
Also, the page displays any Associations, Actions, or Filters for this ECT at the bottom of the page.
No comments:
Post a Comment