locked
How to obtain the CRM Realm ID RRS feed

  • Question

  • Hi,

    I want to obtain the CRM 2016 Realm ID.

    We established Server Intergration with SP2016, but we lost the PS script containing the CRM realm ID.

    Also, the Wizard option in CRM is no longer there, since we used it during the setup.

    We need it for the following script, as found on Technet (https://technet.microsoft.com/en-us/library/dn949332.aspx):

    Add-PSSnapin Microsoft.SharePoint.PowerShell
    $CrmRealmId = "THE-CRM-REALM-ID"
    $Identifier  = "00000007-0000-0000-c000-000000000000@" + $CrmRealmId
    $site = Get-SPSite "EXAMPLE SITE"
    Register-SPAppPrincipal -site $site.RootWeb -NameIdentifier $Identifier -DisplayName "Sample"
    $app = Get-SPAppPrincipal -NameIdentifier $Identifier -Site $site.Rootweb
    Set-SPAppPrincipalPermission -AppPrincipal $app -Site $site.Rootweb -Scope "sitecollection" -Right "FullControl" -EnableAppOnlyPolicy
    #"Set up claims-based authentication mapping"
    New-SPClaimTypeMapping -IncomingClaimType "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress" -IncomingClaimTypeDisplayName "EmailAddress" -SameAsIncoming

    Thursday, December 29, 2016 9:29 AM

All replies

  • Hi,

    Have you tried this.

    https://technet.microsoft.com/en-us/library/dn949332.aspx#GetSPRealm


    Jugal Kishore Dandamudi.

    Monday, January 16, 2017 11:06 AM
  • Hi,

    BartSteur want CRM RealmID not Sharepoint Realm ID ...

    I have same issue, because i restore prod dump on preprod I no longer have the wizard! Do you have the command powershell for get CRMRealmID ? 


    Regards


    Monday, June 12, 2017 9:03 AM
  • If you have access to the CRM databases you can find it in the MSCRM_Config database within tabel OrganizationProperties where you have the ColumnName = S2SRealm .
    Basically this is the same as the Organization "ID" which you can see under the tabel: Organization in MSCRM_Config, which becomes more clear if you have multiple organizations in the same CRM server environment.

    Hope this helps.

    BR. /Philip

    Wednesday, June 21, 2017 3:16 PM