Tag Info

New answers tagged


see this : (storing the form based users in a SQL DB table) http://blogs.technet.com/b/ptsblog/archive/2013/09/20/configuring-sharepoint-2013-forms-based-authentication-with-sqlmembershipprovider.aspx


The following example demonstrates how to distinguish a "regular" users in Web.SiteUsers: public static IEnumerable<User> LoadUsers(ClientContext context) { var users = context.LoadQuery(context.Web.SiteUsers.Where(u => u.PrincipalType == PrincipalType.User && u.UserId.NameIdIssuer == "urn:federation:microsoftonline")); ...


Try this ClientContext clientContext = new ClientContext("http://your site/"); Web web = clientContext.Web; List siteUserInfoList = web.SiteUserInfoList; CamlQuery query = new CamlQuery(); query.ViewXml = ""; IEnumerable<ListItem> itemColl = clientContext.LoadQuery(siteUserInfoList.GetItems(query)); clientContext.ExecuteQuery(); foreach (var item in ...


Attach a event recevier and add item added / updated event to it for assigneing permission. First break permission on item and then add required permission as per item status / metadata.


The error: The user does not exist or is not unique most probably occurs since user could not be found. The list of methods that could be utilized for removing a user from group: SP.UserCollection.remove SP.UserCollection.removeById SP.UserCollection.removeByLoginName The following examples demonstrate how to remove User from Group using ...


Using REST You can REST endpoints for removing users from groups http://msdn.microsoft.com/en-us/library/office/dn531432(v=office.15).aspx#bk_UserCollectionRemoveByLoginName executor.executeAsync({ url: "<app web url>/_api/SP.AppContextSite(@target)/web/sitegroups(7)/users ...


Breaking permission inheritance at the item level is not a sustainable solution. If these are Publishing pages then your drafts will only be visible by Contributors or higher level permission levels until you publish a major version. Content Approval is an additional level of security that will restrict major versions from being published until someone ...

Top 50 recent answers are included