Posts

Map users in SharePoint Migration Tool with File Share option

Image
Map users in SharePoint Migration Tool with File Share option I am trying to migrate some files from my hard drive to SharePoint Online with use of SharePoint Migration Tool. I am able to migrate files but I was facing one issue. After migration done, it was showing local user name in document library instead of SharePoint User name. SharePoint Migration Tool allows user to map local system user with SharePoint Online user. SPMT site provide help in section “ Create a user mapping file for data content migration ”.  Here you have to create a csv file with 3 fields : Field 1 : In this field you have to entry SID of the user. SID means “Security Identifier” which shows like "s-1-5-21-875260305-3154316066-1125797638-1001”. You can get this SID from your server or desktop or laptop by using this simple command : wmic useraccount get name,sid You can find user by using filter: wmic useraccount where name="USER" get sid

Update existing site column properties with CSOM

Hi, Some time we want to update existing Site Column. Reason may be any thing i.e. I want to add more choices in Choice list & want to set default choice value as well. This is very easy in CSOM. Here is my default xml from existing site column : <Field Type="Choice" DisplayName="Office Location"     Required="FALSE" EnforceUniqueValues="FALSE"     Indexed="FALSE" Format="Dropdown"     FillInChoice="FALSE" Group="CustomColumns"     ID="{e57a1e08-f062-4b3c-9dc1-47ee2d0805b0}"     SourceID="{ad0c8572-a4b6-40c3-a359-d282eae885ce}"     StaticName="OfficeLocation" Name="OfficeLocation"     Version="2" CustomFormatter="">         <Default>Main Location</Default>         <CHOICES>             <CHOICE>Main Location</CHOICE>             <CHOICE>Head Quarter</CHOICE>             <CHOICE>Branch</C

The requested service, 'http://my-sp2016:32843/guid/AppMng.svc' could not be activated. See the server's diagnostic trace logs for more information

Hi ,   I was trying to add my custom apps in the SharePoint 2016 but it was throwing me this error : The requested service, 'http://my-sp2016:32843/guid/AppMng.svc' could not be activated. See the server's diagnostic trace logs for more information I have investigated & found the reason. Reason is more then 90% memory is consumed by SharePoint Solution is just kill some process which are taking unnecessary memories. To kill the unwanted processes , open task manager and select the process which is not useful then hit end task button.

Generate & Replace an expiring client secret in a SharePoint Add-in

Hi, I have created a provider hosted app for SharePoint. It got expired due to validity of secrete because usually client secret validity is one year. Now the app started throwing exception to me i.e. ""Invalid JWT token. Could not resolve issuer token." I did couple of research on it & found the solution from site "https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/replace-an-expiring-client-secret-in-a-sharepoint-add-in". I have made some changes in this script to make little bit easier to use . Here is the script : #Actual Article #https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/replace-an-expiring-client-secret-in-a-sharepoint-add-in #MSOnline #Get help from : https://www.powershellgallery.com/packages/MSOnline/1.1.166.0 #Inspect #PS> Save-Module -Name MSOnline -Path <path> #Install #PS> Install-Module -Name MSOnline cls #Get app details Connect-MsolService $clientID = “<<YourClientIdGuidHere>>” Write-Host &

Create Private / Public CDN in SharePoint Online

Here are some command which can help you to create your own CDN : # Connect to your tenant Connect-SPOService -Url https://mytenant-admin.sharepoint.com # Check the current status of CDN capability - by default disabled Get-SPOTenantCdnEnabled -CdnType Public Get-SPOTenantCdnEnabled -CdnType Private # Enable CDN using default settings - -NoDefaultOrigins as optional parameter Set-SPOTenantCdnEnabled -CdnType Public -NoDefaultOrigins Set-SPOTenantCdnEnabled -CdnType Private -NoDefaultOrigins # Get CDN policies Get-SPOTenantCdnPolicies -CdnType Public Get-SPOTenantCdnPolicies -CdnType Private # Add CDN origin Add-SPOTenantCdnOrigin -CdnType Public -OriginUrl sites/cdn/cdn Add-SPOTenantCdnOrigin -CdnType Private -OriginUrl sites/pub35/assets # Get CDN origin Get-SPOTenantCdnOrigins -CdnType Public Get-SPOTenantCdnOrigins -CdnType Private # Public CDN Url, when configured https://publiccdn.sharepointonline.com/<tenant host name>/sites/sites/library # Re

How to move MS CRM 2013 database from one domain to another?

Hi, I wanted to move my MS CRM related organization database from one domain to another domain. I did research on it and did it. It is quite easy. Just follow these steps: Install MS CRM 2013 Install Rollups for MS CRM 2013 First create all users which you have in old domain for MS CRM. There has to be one user enable with System Administrator role in your old CRM. Now just import your organization database into MS CRM with use of Deployment Manager of MS CRM 2013. It will ask you to setup some information i.e. Organization display name, Unique Name, Currency etc., Please setup these information. Then in next step, you have to map users. You can map users with following methods:   Automatic mapping Manually mapping With XML file Here you need to map at least one System Administrator from MS CRM DB. Here is one point which need to take care is, current user has to be System Admin in this case. If you still facing any issue, Please feel free to ask me.