Tag Info

New answers tagged

1

The code should look like this: function getCurrentUser() { this.clientContext = new SP.ClientContext.get_current(); this.oWeb = clientContext.get_web(); currentUser = this.oWeb.get_currentUser(); this.allGroups = currentUser.get_groups(); clientContext.load(allGroups); ...


2

Move this line var groups = currentUser.get_groups(); To your getCurrentUser method and make sure to load it this.clientContext.load(groups); before executing the request, this way you will have it loaded in your success-function


1

Try to $expand the field, as well as $select it, like this: ?$select=*,Access/Id&$expand=Access/Id&$filter=Access/Id+eq+null


3

Yes, it is possible in 2010 to find out who added a particular user to a group and when. You do need to be collecting audit data. You can query the audit data with Powershell, for example, to return the information you seek. Here's a good sample script taken from this blog post: $site = Get-SPSite "http://yoursite.company.com" $startDate = Get-Date ...


0

In the end the problem was with the netbios name... Seems like sharepoint doesn't like a different FQDN/Netbios name. Example: domain.com --> domaincom\user Refer to this site to solve the synchronization problem: ...


0

I found a solution I've added kquery.TrimDuplicates = false; to the KQL, which means that the query will not filter out "duplicate" results.


1

On premises you can use this: http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.speventreceivertype.aspx In Office 365 You can in theory create an app that will handle the administration of those groups for you. However you'd have to hide the original permission management page (master page changes).


0

You can start a worker process in the activation code that will wait for the web to be provisioned and then remove the permissions you want.


1

SharePoint will not give you that information. You will need to query the directory provider yourself. System.DirectoryServices.DirectoryEntry is your salvation. Kirk has a post that can help: http://blogs.msdn.com/b/kaevans/archive/2011/07/04/querying-active-directory.aspx Or, call Brett and get DeliverPoint. ;)



Top 50 recent answers are included