Set Item level user permissions to add/edit/read only own items

In a recent project with SharePoint 2016, I needed to configure a library with the following user requirement: The users only have to view, their own items.

By default, this option it is not available in Library settings, it is only available for List settings, so… what we can do for a Library? You guessed right, PowerShell.

To do it, we can follow the following process:

You can also use s PowerShell script to manage the item level permissions:

Manage Read Access
$web = Get-SPWeb http://urlsite/
$list = $web.Lists[“Library Name”]
$list.ReadSecurity = 2
$list.Update()
$web.Dispose()

Note: 1 = “Read all items”, 2 = “Read items that were created by the user”

Manage Write Access
$web = Get-SPWeb http://url site/
$list = $web.Lists[“Library Name”]
$list.WriteSecurity = 2
$list.Update()
$web.Dispose()

Note: 1 = “Create and edit All items”, 2 = “Create items and edit items that were created by the user” 4 = “None”

Hope that helps!

Advertisements

How to troubleshoot Microsoft Teams

Many clients are adopting Microsoft Teams as the central tool for productivity and collaboration, it is great to see an application that unifies functionalities like video, call and the collaboration tools from SharePoint as well as the integration with other applications or even third party applications.

But, what happens when the Microsoft Teams application fails? Where we can troubleshoot what is happening?

It is true that we can navigate to the Tech Community to try to research for some information, but its not the best, so how we can obtain more information?

By using the magic key combination: Ctrl – Shift – Alt – 1

We will be able to download a log file:

1file

Where we will see pieces of JSON formatted text and the most interesting part, lines that have time stamp and message level and of course, an error message.

Also, we have the leves categorized as:

 

  • War : Warning
  • Err: Error
  • Inf: Information
So, doing this we will be able to troubleshoot Microsoft Teams, and at least obtain a clue of what the hell is happening with the app.
Hope that helps!

SharePoint Online Save As Template Access denied

While I was configuring a SPO tenant, i received an error when I tried to navigate to the url “_layouts/savetmpl.aspx” I receveid the error “You don’t have permissions to access to this site”. So what can we do?

Following the post https://albandrodsmemory.wordpress.com/2016/06/06/master-page-gallery-access-denied/ you will need to use PowerShell to solve this problem.

First, open the SharePoint Powershell and type the following:

Connect-Sposervice -url “https://tenant-admin.sharepoint.com”

Set-sposite “https://tenant.sharepoint.com/sites/url” -denyaddandcustomizepages 0

Once this has been executed, you will be able to save the site as a template

Skype For Business Web Scheduler

Recently I’d been involved in a O365 project where the client need to use Skype for Business Online, but they have the mail in other platform which is not Exchange Online (I hope they will migrate in a near future). So, the question is: How can they schedule meetings for Skype for Business?

As well as MS has a solution to Schedule meetings in OnPremises, for Skype Online we have a similar solution, which is “Skype for Business Web Scheduler”, very original, isn’t it?

This solution is a web-based program that you can use to create Skype Meetings, in case you don’t have Outlook. The only thing you need is an Internet connection (we are in O365, bravo captain obvius!)

So, we’ll need to navigate to https://sched.lync.com sign in with your work account, and the scheduler will be presented. For people that has been using Skype Scheduler with Outlook, will be very similar to it.

If you have any doubts or need support about this tool, check the following link

Hope that helps!

Disconnect inactive RDP sessions

While I’m working in a project that needs to log in into a server I usually leave my user session opened (yes I know that it s not a good practice, but I always forget to log off).

So when an admin needs to connect to the server there are either no free sessions or probably the openend sessions are consuming resources that could be slowing down the server.

So as a power user, I discovered the following command to execute in PowerShell (remember to execute it as administrator) to try to list and free the unused sessions:

If you only want to see the sessions, you can execute only this:

query user | select -Skip 1 | ? {($_ -split “\s+”)[-4] -eq ‘Disc’}

To disconnect all these sessions at once, you can execute this command inside an elevated PowerShell window:

query user | select -Skip 1 | ? {($_ -split “\s+”)[-4] -eq ‘Disc’} | % {logoff ($_ -split “\s+”)[-5] /v}

And then all disconnected RDP sessions are forced logoff and the resources are free.

Till next time!

SharePoint 2016 Features Standard vs Enterprise Comparaison (filterable, colors)

Great post from Jeff about how to choose SharePoint 2016 license types based on the features of each license.

OFFICE 365 NOTES

 

How to recommend a SharePoint license based on what the user want ?

This excel file could help to choose the license for SharePoint 2013 / 2016.

https://gallery.technet.microsoft.com/SharePoint-2016-Feature-ce033b50

Hope it helps,

View original post