Friday, September 17, 2021

6 ways to check SharePoint Usage reports

Introduction

SharePoint administrators always want to know which user is accessing any site or site collection extensively and which user has access to the site but not using it. The other site details required are related to traffic, access, edit, etc. The user's behavior changes as per the nature of the site and their working department like project team site, department site, and managerial workspace.
Fortunately, Microsoft 365 has given multiple methods to generate or view various reports related to SharePoint usage. We will check all the methods one by one and see how they provide the required results. Several options are available at different parts in SharePoint Site or Admin Center where the Administrator can check status or create reports.

Method-1. Check Site Usage in Site Contents Page.

The Site contents page shows the analytics data like their unique visitors, total site visits, average time spent by the user, etc. The report can be generated for multiple days like 7, 30, 90. 
  1. Open any site in the Active sites, and click the gear icon, then click Site contents.

  2. Click the Site usage option after opening the site.

  3. The Site Usage Analytics will show the various charts for different parameters. It will give you a clear idea about the performance of your site.

Method-2. Site Activity part on a modern page

The modern page for the SharePoint site was introduced recently, and it shows the activity of the selected web page with minute details. If you have created the modern page, you can go to its options by right-clicking it and choosing Site activity.



The activity page shows the page content in a chronological manner. The updates in the document, task, calendar, OneNote, etc., are shown in detail. You should know that the classic page does not show the site activity.

Method-3. Manage Site Collection audit settings

The above two methods show the reports related to a single website or webpage, but the audit settings will help you manage reports for the whole site collection.

NOTE – This available is available in only SharePoint on-premises.

If you are a SharePoint on-premises administrator, then you can follow the below method-
  1. In the SharePoint Admin Center, go to Site Settings and choose Site collection audit settings.

  2. There will be several checkboxes that you need to check to retrieve their information.
  3. Go to View Auditing Reports, and you can see several reports in various categories like Content Activity Reports, Information Management Policy Reports, Security and Site Settings Reports.
  4. Choose the saving location of reports.
  5. After getting a confirmation message, you can see the link that you can click to open.
  6. On clicking the link, it will redirect to a document library where all the reports are present.
  7. Now, you can open any report from the list.

Method-4. From Microsoft 365 Admin Center

In Microsoft 365 Admin Center, there are various options to view or generate different kinds of reports.
  1. On the home page of Admin Center, you can see the Active Users graph on the right-hand side. In the graph, there will be one entry for SharePoint and other applications. If you click the Active users, then you can see the whole report for various activities.
  2. You can also go to reports in the Admin Center list and click Usage.

  3. In the Usage list, you can choose and open any kind of report that is available.

Method-5. Audit Log Reports in Microsoft 365 Admin Center

The Search and Compliance Center present in Admin Center gives you a more detailed report of each activity by the user, like who edited a document, downloaded it, or opened the file. The audit log report records all these activities, including a timestamp and IP address.
  1. In Search & Compliance center, go to Reports and click view reports.
  2. Select Start and End date, then click the Download option to download a report.

Method-6. Generate Report using Power BI Adoption pack

Not many users are aware of such special packs that can also generate reports. But first, you must activate this pack in Admin Center.
  1. In Report>>Usage, click Get Started under Office 365 Adoption.
  2. Click Ok and then Save after a new pop-up comes up.
  3. It will take approximately 48 hours to activate the pack fully and retrieving the information.
  4. After the pack is ready, a new tenant ID will be generated, and you should note it down for Power BI.
  5. Follow Power BI>>Get Data>>Get Under Services.
  6. Click Get It Now for installation.
  7. Next screen will ask for a tenant ID. Paste the tenant ID here.
  8. A new dashboard will appear for Office 365 Adoption Preview with multiple colorful charts.
  9. You can click on the SharePoint logo to select SharePoint Usage.

Conclusion

In this article, we present all the information for retrieving the SharePoint usage information with the help of multiple methods. When you have migrated the accounts from one account to another or upgraded to a new version, it will be tough to create such reports. That's why you should use Kernel Migrator for SharePoint software that will migrate the complete site collection of multiple accounts. This tool allows you to migrate all SharePoint information, including versions, metadata, etc., without any issues.

Friday, February 26, 2021

Learn : How to clean cache files to handle MS Teams issues

Microsoft is focusing on collaboration and MS Teams is most popular now a days. We can update settings / profile from MS Teams and other Office 365 documents. Sometimes we may faced issue related to cache, it means that we are updating something and its not working on our local machine only.

Same situation was with me, user had changed his name and its available correctly for other team member but on his local machine its old one even in all Office 365 clients (MS Word, Excel, etc.). Manually tried to clean up some files but its not working. So drafted a PS script that worked. 

Sharing that PS snippet with you all so that you can also save your time.

PowerShell script at GitHub Clean MS Teams Cache

$VerbosePreference = "Continue"

# Force Close any Teams Process
Get-Process -Name "Teams" | Stop-Process -Force

# Get Microsoft Teams Paths
$TeamsRemovePath = @()
$TeamsRemovePath += Join-Path -Path ([Environment]::GetFolderPath('ApplicationData')) -ChildPath ("Microsoft\Teams\Cache")
$TeamsRemovePath += Join-Path -Path ([Environment]::GetFolderPath('ApplicationData')) -ChildPath ("Microsoft\Teams\databases")
$TeamsRemovePath += Join-Path -Path ([Environment]::GetFolderPath('ApplicationData')) -ChildPath ("Microsoft\Teams\IndexedDB")
$TeamsRemovePath += Join-Path -Path ([Environment]::GetFolderPath('ApplicationData')) -ChildPath ("Microsoft\Teams\Local Storage")

# Remove items
Remove-Item -Path $TeamsRemovePath -Recurse -Force -Verbose


Wednesday, September 26, 2018

Enable / Disable Site Collection App Catalog in SharePoint Online (Office 365)

Overview

While deployment of apps / add-ins or SPFx solutions to SharePoint Online App Catalog, this solution will be available to all of collections in your tenant as it is centrally deployed. This may lead to a lot of confusion when you are working with a lot of solutions in your Tenant, as all of solutions is available to all site collections as it is deployed centrally in Tenant app catalog.

To overcome this problem, Microsoft has introduces Site Collection App Catalog.With the introduction of site collection app catalogs, tenant administrators can enable app catalog on the specific sites. Once enabled, site collection administrators can deploy SharePoint add-ins and SPFx solutions that will be available only in that particular site collection.

The following schema illustrates using site collection app catalogs



Use below script to Enable / disable site collection app catalog

To Enable Site Collection App Catalog


$siteUrl = "https://yourdomain-admin.sharepoint.com"
$password = "******"
$username = "accountname@domain.com"
try{
$encpassword = convertto-securestring -String $password -AsPlainText -Force
$cred = New-Object -typename System.Management.Automation.PSCredential($username, $encpassword)

#Connect to SharePoint Service
Connect-SPOService -Url $siteUrl -Credential $cred

Write-Output $("Connected to $siteUrl")

$site = Get-SPOSite https://domain.sharepoint.com/sites/sitecollectionname

# create site collection app catalog
Add-SPOSiteCollectionAppCatalog -Site $site

Write-Output $("Site Collection App Catalog feature on $siteUrl is Enabled")
}
catch [System.Exception]
    {
        Write-Output -f red $_.Exception.ToString()
    }


To Disable Site Collection App Catalog

$siteUrl = "https://yourdomain-admin.sharepoint.com"
$password = "******"
$username = "accountname@domain.com"
try{
$encpassword = convertto-securestring -String $password -AsPlainText -Force
$cred = New-Object -typename System.Management.Automation.PSCredential($username, $encpassword)

#Connect to SharePoint Service
Connect-SPOService -Url $siteUrl -Credential $cred

Write-Output $("Connected to $siteUrl")

$site = Get-SPOSite https://domain.sharepoint.com/sites/sitecollectionname


# disable the site collection app catalog
Remove-SPOSiteCollectionAppCatalog -Site $site
Write-Output $("Site Collection App Catalog feature on $siteUrl is disabled")
}

catch [System.Exception]
    {
        Write-Output -f red $_.Exception.ToString()
    }

Limitation

  1. SharePoint Online Management Shell should be installed
  2. Not compatible with PnP PowerShell
  3. Currently, it's not possible to list all site collections in the tenant that have the site collection app catalog enabled. So, you can create an SharePoint list for inventory 

Reference

https://docs.microsoft.com/en-us/sharepoint/dev/general-development/site-collection-app-catalog

Wednesday, July 11, 2018

Migration to One Drive for Business- the Process and Options

OneDrive is a part of Office 365. This cloud service from Microsoft allows you to access data anywhere, anytime. One Drive for Business has numerous advantages for businesses as it makes it easy to access documents, speeds up the sharing of data, and facilitates collaboration within different departments of the organization.
OneDrive for Business has helped many business organizations to grow many folds by ensuring better document management and collaboration.

Migrate Windows File Server data to Office 365

Here is the brief procedure to migrate Windows file system data to Office 365 –

  1. Sign in to Office 365 account
  2. Click the App Launcher icon at the top left-hand side
  3. Click the Office 365 icon
  4. Click Upload and Open
  5. Browse the desired files and click Open
  6. Files get uploaded
  7. After the successful upload, the file will automatically open

There are two other methods too which you can use to upload data –

SharePoint Migration tool It is a free tool which you can download and use to migrate files, documents, lists, and libraries.
OneDrive Sync Client This tool allows you to drag and drop files from your computer to SharePoint Online.

Migrate Windows File Server data to OneDrive for Business –

To upload files to One Drive for Business, just follow the steps -

  1. After successful sign in, click the App Launcher, and then select OneDrive
  2. Click the Upload icon
  3. Select the files and click OK
  4. After successful migration, you can view the data at the saved location

Professional method

OneDrive for business is a good platform to store documents. But if you want to store large amount of data, then the manual migration process will be quite time taking as you will have to select files multiple times and then wait for them to migrate.
To migrate large amount of data, it is better to use a professional tool which supports all versions of SharePoint and OneDrive. Kernel Migrator for SharePoint is one such a SharePoint migration tool which uploads large amount of data from to SharePoint and OneDrive for Business. Also, it migrates the complete SharePoint data to another SharePoint Server or SharePoint Online.

   

Conclusion

A manual method for File System to One Drive migration is simple but it never guarantees a successful migration, especially for large amount of data. Whereas, Kernel Migrator for SharePoint is a complete tool with all the features required for efficient migration. It migrates data between any version of SharePoint (2007,2010,2013). It also migrates File server to OneDrive for business,  SharePoint and Google Drive.

Thursday, May 31, 2018

Bulk User Properties Import with SharePoint Online

Overview

When we are working with Office 365 in our organization, some time there is requirement to connect on premise AD to get feed and update it.
In this article, I’m explaining a case; export data from AD only for specific (custom) attribute and update it in SharePoint user profile.






Requirement

We are working on Office 365 and in user profile we have created some additional custom attribute. By default, Office 365 supports sync only default properties with AD. To sync additional custom properties, we have to write custom sync engine. Microsoft has released API to sync additional attributes.

Solution

Microsoft has released Bulk update custom user profile properties for SharePoint Online APIs to direct sync custom attributes from JSON feed file.


To achieve solution, below are the steps
  1. Create and upload JSON feed file
  2. Feed output of step 1, to Microsoft Bulk User Import API
  3. Check the status of an import job

Create and upload a JSON feed file

It’s the important steps that needs to take care, use TechNet Gallery code snippet to generate JSON file for your environment and upload it to you’re a document library on your tenant.

Used UPN as unique key to update user properties. Sample output JSON file is below

{ "value":



 [



 {



 "IDName": "jagga.v@sharepointexcellence.com",



 "Company": "SharePoint Excellence",



 "StreetAddress": "some value",



 "PostalCode": " some value",



 "city": " some value",



 "Country": "some value"



 }



]



 }


Execute Microsoft Bulk User Import CSOM API

Microsoft has releases his CSOM API for the same, you can find the Source code CSOM and PowerShell from here. Make sure the you need to update this w.r.t. your business needs.

The source JSON file must be uploaded to the same SharePoint Online tenant where the process is started.

Check the status of an import job

You can check the status of your import job by MS CSOM APIs. There are two methods to validate the status and the same is detailed documented here

Exception Handling

Now you are done with your custom sync engine but the main thing is how to handle exceptions while import job progress? Microsoft CSOM bulk user import APIs is handling it automatically, it used two types of validation process
  • Queue the bulk user import script JSON feed file as initial screening
  • Log exception if any exception is in between bulk user import for specific user
These log file have placed automatically at the location where your JSON file is exist. For more detailed information on exception handling read detailed documentation here

Limitation

  • Maximum file size of JSON file is 2 GB
  • Maximum number of properties in JSON file is 500,000
  • The import only works for user profile properties that have not been set to be editable by end users
  • The import only allows custom properties that are not Active Directory core properties. These must be synchronized to Azure AD
  • Taxonomy based custom user properties not supported with this API

Tuesday, April 10, 2018

Office Mix Preview end of service

Users who are are using Office Mix to create and share interactive online videos based on PowerPoint presentations, got an email last week that Microsoft is retiring the service on May 1, 2018. If you are one of the affected users, please continue with this article.


Microsoft will bring the best features of Office Mix directly into PowerPoint, Microsoft Stream, and Microsoft Forms for Office 365 subscribers on Windows PCs without any additional add-in. As the service becomes obsolete, this also means that Microsoft will delete every Office Mix content from their server. In order to avoid losing your data saved into Office Mix workspace, you need to migrate them to Microsoft Stream, or download it into your OneDrive workspace.


Everything you need to know about the migration, and the future of these features, are collected into this MS help article:
https://support.office.com/en-us/article/Migrate-your-content-from-Office-Mix-c1c04f84-a7bb-4602-9645-258017155258?ui=en-US&rs=en-US&ad=US&WT.mc_id=eml_CXM_en-us_C_2018-03_Office_Mix_Service_Notification

Wednesday, March 28, 2018

Office 365 - Sharing to external users is not supported

Symptom:
A user at our tenant is not able to share files with external users. This issue is occurring for the Office Group, when the user tries to share a folder from the "Documents", with an external user, the following message appears "Sharing to external users is not supported". However when a colleague shares a document with the same external user account, the sharing is successful.

The affected user has created a new Office group and tried to share a document with an external user, however the same message appeared.

In the Office Admin Center, Security & Privacy, the tenant has the following settings:
  • Let users add new guests to the organization - on
  • Let users share SharePoint Online and OneDrive for Business content with people outside the organization - on
  • Users can share with - new and existing external users (sign-in required)
In the SharePoint Admin center:
  • Allow users to invite and share with authenticated external users
  • Let only users in selected security groups share with authenticated external users
Cause:

The user was not part of one of the security groups in SharePoint Admin Center


Resolution:

Added user to the any security group in SharePoint Admin Center and after was able to now able to share files and folders with external users.

SharePoint AI Innovations Reach General Availability

Microsoft continues to strengthen the foundation for AI-powered workplaces with the announcement that several SharePoint AI innovations are ...