Pour faire simple, Microsoft Graph est un point d’entrée unique pour récupérer différentes informations, sur votre tenant Office365, à partir de plusieurs applications.
En gros, Microsoft Graph vous permet de requêter un seul endpoint et de récupérer vos informations personnelles Office365 (comme votre photo, votre adresse mail, …), vos tâches, votre calendrier à partir de Outlook, vos notes à partir de OneNote, … Bref, cela permettra à vos applications de se connecter, de récupérer et de présenter beaucoup plus facilement toutes les informations nécessaires de l’utilisateur courant.
Use case : User can administer his “MySite” site but he shouldn’t have the right to share anything content or assign permissions in his site (customer need). Platform : SharePoint Server 2013 Problem : The owner of a “MySite” site is a site collection administration. Even if we change his permissions on a list or document library and remove the “Manager Permissions” base permission, as he is a site collection administrator, he will have the right to share his content. Workaround : The idea is using the “Permission Policy Levels” on the web application that is hosting the “MySites” site collections. The steps are described below :
Go to “Central Administration” and click on “Manage Web Applications”
Click once on the “MySites” hosting web application and click on the ribbon on the button “Permission Policy” under the group “Policy”.
Click on “Add Permission Policy Level”
Under the “Name and Description” section, give your permission policy level a name (‘FullPermissionsWithoutSharing’ for example), a description (not required).
Under the “Site Collection Administrator” section, don’t check the two checkboxes.
Under the “Permissions” section, check the “Grant All” checkbox. This will check all the checkboxes in this column. Under the “Deny All” column, we check the “Manage Permissions” and the “Manage Web Site” checkboxes. The first one will prevent users from sharing their content or inviting other users to their site contents. The second one will prevent users from assigning other site collection administrators (The first one didn’t allow to do that).
Save the “Permission Policy Level”
In the “Central Administration”, go to the “Security” section and click on “Specify Web Application User Policy” (under “Users” group).
Click on “Add users”
Click “Next” (you can specify the zone affected by this permission policy level or keep it by default for all zones).
Under “Choose Users” section, choose the user/group on which you want to apply this permission policy. For my case, I selected a group of users.
Under “Choose Permissions”, Check the new permission that you created.
Click on “Finish”.
Now, when a user creates his own “MySite”, he will be assigned this new permission policy. He will have full control over his site but he will not be able to share any content or assign other site collection administrators. Hope this helps you. Please, feel free to give your feedback.
I have a SharePoint 2013 farm and I faced this issue when I tried to enable my web scoped feature in all site collections root webs by using PowerShell. The error was “Enable SPFeature : The Feature is not a Farm Level Feature and is not found in a Site level”.
But the weirdest thing is that all the tricks that I found on different blogs did not resolve my problem. This was due to the face that I was in a special condition. In fact, I was trying to activate a feature with compatibility level of 15 in a site collection which wasn’t already upgraded to the 15 mode, i.e in a site collection that has been migrated but not yet upgraded.
So, in order to resolve this weird error, I’ve just upgraded my SC and the error was gone. Voila !
Has anyone of you faced this a day ? A simple SharePoint project with a simple web scoped feature, having tens of web applications and you want to deploy your wsp to a single web app ? This is possible, but considering having many web applications, the deployment timer job will take too much time .You think you can do it ? Yes, simply by specifying the name of the web application in which you want to deploy your wsp, like this :
but SharePoint will not allow you to do it. This is what SharePoint answers :
The trick is simple, just add a SafeControl element in the package.package manifest. Open your package.Template.xml file, then, you’ll just need to specify the location of your dll (normally, it’s the same as your dll name), the assembly name and the namespace.
Now you package and deploy your solution again, and voila ! Your wsp is now deployed to the web application that you specified in your powershell script.
When you need to build a URL for a REST API request from within a SharePoint page, you can use the _spPageContextInfo.webServerRelativeUrl property to retrieve the server-relative root URL of the current SharePoint site.
I know that there are a lot of blogs and posts treating this sensitive subject, but I recently found what I call a “Summary Post”.
This post is a course from the official Office site, it will help you understand what is the SharePoint list limit threshold and how to avoid it, and a bonus, there’s a nice Q&A session at the end, so enjoy 🙂
After a new installation of SharePoint Server 2013, I tried to open the default site on port 80 but this one wouldn’t. I looked in the logs for the exception according to the correlation id, I found the following message : “SPDistributedCachePointerWrapper::InitializeDataCacheFactory – No cache hosts are present in the farm.”.
Many blogs point you to the solution “Delete and add a new Distributed Cache”, but the error was simply caused by the firewall which closed the port 22233 of the AppFabric.
So you can simply disable the firewall like I did or add exceptions for 22233, 22234, 22235 and 22236 TCP ports for AppFabric to work perfectly.
From the dozens blogs that I read, no one helped me, every blog was talking about problems in initializing the taskId, TaskProperties, AfterProperties, BeforeProperties, … But the problem was elsewhere, it’s when I read this blog that I understood that I wasted precious hours of my time with something … let’s say it, “stupid”.
If you are in the same trouble, here’s the original post that helped me. Have a nice day 🙂
Currently, I’m working with Entity Framework 5. Recently, I tried create a composite primary key from SQL Server Management Studio, and this worked fine. After that, I launched the command “Update Model From Database”, The update was also successful. But everything went wrong when I tried to generate the database context. The error mentioned was “properties referred by the principal role must be exactly identical to the key of the entity type”. I’m not sure of the source of this issue (and if you ever have the right answer, please let me know), but when I took a look to the designer, I found that the second primary key, the one that I added from SSMS was not recognized as primary key, so I clicked on, done a right click > Entity Key, I think I forced the designer to set this property as a primary key. This trick solved my issue. Hope it helps,