Articles about European Sharepoint Hosting Service
Posts tagged SharePoint Hosting 2016 Paris Server
SharePoint Hosting – Use ULS Log Viewer With SharePoint Server 2016
Jul 15th
SharePoint 2016 provides diagnostic logging services to debug and isolate the issues among the farm. we will configure it from monitoring section in Central Administration. As part of it, we will specify the situation wherever the trace logs are going to be stored. In production, it’ll be a decent plan to stay it in a high capacity disk.
Once logging has been in place, it’ll produce the log files in real time, depending upon the severity of the events. we will go to the log location and find the recently updated log file to work on an existing issue in the farm.
However, opening it up in a notepad is going to create a tough time isolating the error as it is flooded with event logs.
To alleviate this issue, we can make use of a log viewer. There were many log viewers available for SharePoint 2013, however, not all of them are reusable with SharePoint 2016. One of the log viewers, intended for SharePoint 2013 but can be used with SharePoint 2016, is the ULS log viewer from Microsoft which can be downloaded from here. ULS stands for Unified Logging Service.
Once the log viewer is installed and opened, it will ask for the log file location from which the log files should be picked up. Specify the log folder path and click on OK.
This will load the logs into the ULS log viewer and we can easily browse through it to isolate the issues.
We can also find the issues by severity. Clicking on the severity icons in the top menu bar will highlight the issue accordingly. Critical issues will be highlighted, as shown below. This helps to identify and pick the needed ones from the large pool of event logs.
SharePoint 2016 Hosting Recommendation
HostForLIFE.eu’s SharePoint 2016 Hosting solution offers a comprehensive feature set that is easy-to-use for new users, yet powerful enough for the most demanding web developer expert. Hosted SharePoint Foundation 2016 is the premiere web-based collaboration and productivity enhancement tool on the market today. With SharePoint 2016 Foundation, you can quickly access and manage documents and information anytime, anywhere though a Web browser in a secure and user friendly way. SharePoint hosting services start at only at €9.99/mo, allowing you to take advantage of the robust feature set for a small business price. HostForLIFE.eu offers a variety of hosted SharePoint Foundation 2016 plans as well as dedicated SharePoint 2016 Foundation options.
SharePoint 2016 Hosting – How to Disable Mobile Browser View Across Sites In SharePoint Server 2016?
Nov 3rd
In this review, I will tell you about how to disable Mobile Browser View Across Sites In SharePoint Server 2016. Device channels were introduced in SharePoint 2013. Device channel allows us to map the created device channel to a device, based on its user agent and target custom master pages, specifically to the device. Thus, we can have one master page for iPhone while a different one for Blackberry and so on.
However, when we try to specify a master page for the device channel, we will get the below warning if Mobile Browser view is not disabled.
Now, we can disable Mobile Browser View feature across the sites in a site collection by running the below script in SharePoint 2016 Management Shell.
1 2 3 4 5 6 7 8 |
$SPWebApplication = Get - SPWebApplication - Identity "http://SharePoint2016" $SPSiteCollection = $SPWebApplication | Get - SPSite - limit all foreach($SPSite in $SPSiteCollection) { $SPWebs = $SPSite | Get - SPweb - limit all foreach($SPWeb in $SPWebs) { Disable - SPFeature - Identity "d95c97f3-e528-4da2-ae9f-32b3535fbb59" - url $SPWeb.URL - Confirm: $False - ErrorAction SilentlyContinue } } |
Now, Heading over to the Features section, we can see that the Mobile Browser View has been disabled.
Now, we can successfully specify the master page for device channel, as you can see on the following picture:
SharePoint 2016 Hosting Recommendation
HostForLIFE.eu’s SharePoint 2016 Hosting solution offers a comprehensive feature set that is easy-to-use for new users, yet powerful enough for the most demanding web developer expert. Hosted SharePoint Foundation 2016 is the premiere web-based collaboration and productivity enhancement tool on the market today. With SharePoint 2016 Foundation, you can quickly access and manage documents and information anytime, anywhere though a Web browser in a secure and user friendly way. SharePoint hosting services start at only at €9.99/mo, allowing you to take advantage of the robust feature set for a small business price. HostForLIFE.eu offers a variety of hosted SharePoint Foundation 2016 plans as well as dedicated SharePoint 2016 Foundation options.
SharePoint 2016 Hosting – How to Check If a User Has a Specific Permission Level in SharePoint 2016?
Oct 18th
Security Management may be a prime concern in SharePoint, because the right content has to be served to the proper individuals with the adequate permissions. SharePoint recommends assigning role-based permissions. All the permissions are managed through the roles. Roles are classified in two sections:
- Role Definition
- Role Assignment
Role definition, additionally called a permission level, is that the list of permissions, related to the role. Full control, contribute, read, design, and limited access are some of the role definitions available.
Role assignment is the relationship established between users/groups and the role definition.
In this blog, let’s use JavaScript Object Model to examine if user has Full control Permission level in the web.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
<script language="javascript" type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js"></script> <script language="javascript" type="text/javascript"> $(document).ready(function() { SP.SOD.executeFunc('sp.js', 'SP.ClientContext', checkUserPermissions); }); var oGroupColl,oWeb; function checkUserPermissions() { //Get the client context, web and current user object var clientContext = new SP.ClientContext.get_current(); oWeb = clientContext.get_web(); oCurrentUser = oWeb.get_currentUser(); //Load the client context with the required objects clientContext.load(oWeb,'EffectiveBasePermissions') clientContext.load(oCurrentUser); //Execute the batch clientContext.executeQueryAsync(QuerySuccess, QueryFailure); } function QuerySuccess() { //Check if user has Full Control Permission Level var userName = oCurrentUser.get_loginName(); console.log("Does the user has full permission in the web ? : "+oWeb.get_effectiveBasePermissions().has(SP.PermissionKind.manageWeb)); } function QueryFailure(sender,args) { console.log('Request failed'+ args.get_message()); } </script> |
Now we can add the above code in the Content Editor Web Part to see it in action.
Specify the URL of the text file containing the JSOM Code in the content link field.
Upon clicking “Apply”, we will get the output in the console, as shown below.
SharePoint 2016 Hosting Recommendation
HostForLIFE.eu’s SharePoint 2016 Hosting solution offers a comprehensive feature set that is easy-to-use for new users, yet powerful enough for the most demanding web developer expert. Hosted SharePoint Foundation 2016 is the premiere web-based collaboration and productivity enhancement tool on the market today. With SharePoint 2016 Foundation, you can quickly access and manage documents and information anytime, anywhere though a Web browser in a secure and user friendly way. SharePoint hosting services start at only at €9.99/mo, allowing you to take advantage of the robust feature set for a small business price. HostForLIFE.eu offers a variety of hosted SharePoint Foundation 2016 plans as well as dedicated SharePoint 2016 Foundation options.