Basic Questions On Managing Users And Permissions in Sharepoint with C#

Copper Contributor

I want to develop an application that will manage users and permissions on Sharepoint.  I don't want to add apps or parts to Sharepoint, just manage users and permissions.  Here are my questions:

  1. If I just want to manage users and permissions, can I create a development environment on Windows 10 Desktop or Windows Server running Sharepoint?
  2. Do you know of an online tutorial with code samples in C# that shows how to manage users and permissions on Sharepoint?

Thank you for any assistance you can give me.

3 Replies
Hi,
If it is SharePoint online, then please refer the below link. A sample SPFx web part developed by the community member
https://github.com/SharePoint/sp-dev-fx-webparts/tree/master/samples/react-securitygrid

@Sudharsan K.,

Thanks for the reply.  

 

Web parts are not on the agenda for me at this point.  I want to write a Winform application to manage users and permissions.  I would like to know if it is possible to have my development environment on Windows 10 as the people who will use the app will be on Windows 10 managing users and permissions on our Sharepoint online instance.

 

  1. Can I create a development environment on Windows 10?
  2. Do you know of any code snippets or examples for managing Sharepoint online users and permissions that run in a Winform?

Thank you.

Hi,
Yes, you can use Windows 10 for developing the application for SharePoint. Use Visual Studio Community or VS Code for your development based on your experience. Use PnP CSOM which is the patterns and practices client-side object model used to connect to SharePoint Online and you can do most of the operations programmatically. Please look at the below samples
https://github.com/pnp/PnP/tree/master/Samples

Hope it helps, please like it or mark it as a solution if it resolves ur clarification or issue
-Sudharsan K...