Quantcast
Channel: SharePoint 2010 - Setup, Upgrade, Administration and Operations forum
Viewing all articles
Browse latest Browse all 12728

Add users to sharepoint bcsmetadata stores permission using powershell

$
0
0

Hi,

I am using Powershell to add permissions on External Content Types in BCS. I tried the following script and users are added successfully. But permissions are not reflected and i am facing error "Access Denied by Business Data Connectivity".

Surprisingly, as soon as open the "Set permissions" dialog box for external content type and do nothing and just Click OK. Permissions start reflected successfully.

My PowersShell script is as below:

$bcsAdminUser=New-SPClaimsPrincipal-Identity$bcsAdmin-IdentityTypeWindowsSamAccountNameGrant-SPBusinessDataCatalogMetadataObject-Identity$ECT-Principal$bcsAdminUser-Right$allPermissions

Please advise, what am I missing.

Regards,

Deepali


Deepali


Viewing all articles
Browse latest Browse all 12728

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>