Join Robert Bogue for an in-depth discussion in this video Doing what the user can't do, part of Developing SharePoint Full Trust Solutions for SharePoint 2013.
- Let's talk about how you can get your code to do things…that the user can't do themselves.…Most code in SharePoint runs in the context of the user.…So the code can do whatever the user can do…through the user interface.…Sometimes, though, the user shouldn't be able…to do things that the code needs to do.…We need it to be able to do more things.…Well, one way to do this is in impersonation steps…inside of SharePoint Designer.…It's kind of like a mask, a clown suit,…where you can pretend to be someone else.…
What happens is you create an impersonation step,…and then all of the activities that happen inside of that…run as the person who associated the workflow…to the list or library, or the person who created it…inside of SharePoint Designer and hit publish.…This allows for the workflow actions to take the permissions…of another user and thereby allow the workflow…to do the things that that user couldn't do themselves.…Another alternative, another way, to get the code…to be able to do something that the user themselves…
If you've wanted to learn how to develop custom solutions on SharePoint—or you've been told that you need to develop a solution that integrates with SharePoint—this is the training you need. It's quick, to the point, and effective at helping new developers work with SharePoint code.
Robert Bogue shows how to create new web parts, access and update data in SharePoint, work with files, and create SharePoint artifacts: lists and libraries to store data, site-level features, files, etc. He also shows how to create sandbox solutions that do not affect the rest of the server environment, and discusses execution options for solutions, including in-page, quasi-page, and out-of-page execution.
- Define web parts.
- Explain how to interact with a web part.
- Recall how to help determine what declarative code and user code is.
- Identify which object allows you to get data from more than one list.
- Identify what class timer jobs are derived from.
- Recognize different types of event receivers.