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