From b4e5cd933555019fdecf8c55cc66a24b7d984615 Mon Sep 17 00:00:00 2001 From: Trevor Seward Date: Sun, 11 Mar 2018 16:24:09 -0700 Subject: [PATCH] Update Grant-SPBusinessDataCatalogMetadataObject.md Fixed example formatting. --- .../Grant-SPBusinessDataCatalogMetadataObject.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/sharepoint/sharepoint-ps/sharepoint-server/Grant-SPBusinessDataCatalogMetadataObject.md b/sharepoint/sharepoint-ps/sharepoint-server/Grant-SPBusinessDataCatalogMetadataObject.md index e6e705ee2a..1162a81f0d 100644 --- a/sharepoint/sharepoint-ps/sharepoint-server/Grant-SPBusinessDataCatalogMetadataObject.md +++ b/sharepoint/sharepoint-ps/sharepoint-server/Grant-SPBusinessDataCatalogMetadataObject.md @@ -31,11 +31,9 @@ For permissions and the most current information about Windows PowerShell for Sh ### ------------------EXAMPLE------------------ ``` -C:\PS>$claimJohn = New-SPClaimsPrincipal -Identity "CONTOSO\johndoe" -IdentityType WindowsSamAccountName - -C:\PS>$Model = Get-SPBusinessDataCatalogMetadataObject -BdcObjectType "Model" -ServiceContext http://contoso -Name "ContosoModel" - -C:\PS>Grant-SPBusinessDataCatalogMetadataObject -Identity $Model -Principal $claimJohn -Right Edit +PS C:\>$claimJohn = New-SPClaimsPrincipal -Identity "CONTOSO\johndoe" -IdentityType WindowsSamAccountName +PS C:\>$Model = Get-SPBusinessDataCatalogMetadataObject -BdcObjectType "Model" -ServiceContext http://contoso -Name "ContosoModel" +PS C:\>Grant-SPBusinessDataCatalogMetadataObject -Identity $Model -Principal $claimJohn -Right Edit ``` This example gives Edit permissions to the user with the identity johndoe on domain CONTOSO, for the model metadata object with the name ContosoModel.