Windows Forms User's Guide > Howto: Use Document Permissions
The sample consists of 3 parts:
In the first step, users can be created and deleted. An administrator or designer of a document can choose from these created users to create editable regions in a protected document. This sample shows how to create a list of users for demo purposes. In real-world applications, these users would be created by your user management layer in your application (Windows users, Sharepoint users or any other authorized list of users).
Open the application and click on Manage Users. In the opened dialog, click New... to add a new user. Choose a Username, type in a Password, repeat this password and confirm with OK. Repeat this step with as many users as you like.
Close the Manage Users dialog by clicking OK.