sharepoint - How to set Administrators and permissions in Business Data Connectivity Service using powershell -


while creating managed metadata service using powershell, new-spmetadataserviceapplication have property -administratoraccount , -fullaccessaccount set administrator , permissions.

but in new-spbusinessdatacatalogserviceapplication have not found properties that.

how can add users in administrators , permissions?

thanks

i got solution. here answer.

$principal = new-spclaimsprincipal "domain\sp_farm" -identitytype windowssamaccountname  $spapp = get-spserviceapplication -name "search service application"  $security = get-spserviceapplicationsecurity $spapp -admin  grant-spobjectsecurity $security $principal "full control"  set-spserviceapplicationsecurity $spapp $security -admin 

the above given code worked if want add user in administrators. if want add user in permissions remove -admin.


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -