Posts

Showing posts with the label List

Get list of all users present in a site under different SharePoint Groups

Background: I wanted to see all users who have access to the SharePoint site and belongs to which SharePoint group. Solution: Below SharePoint powershell script helps me to get list of users group wise- $site = Get-SPSite <Provide Site Collection URL here> $web = $site.OpenWeb() $groups = $web.sitegroups foreach ($grp in $groups) {      "Group: " + $grp.name;      $groupName = $grp.name      write-host "Group: " $groupName   -foregroundcolor green      foreach ($user in $grp.users) {              "User: " + $user.name              write-host "User " $user.UserLogin   -foregroundcolor red      } } Usage: Navigate to Script location and type below command- GetUsers.ps1 This will sh...

SHAREPOINT 2013 – "SORRY WE ARE HAVING TROUBLE REFRESHING YOUR TASKS"

Image
I have configured My Sites in SharePoint 2013.  However, when I attempt to refresh the tasks list it fails with the following message: Sorry, we’re having trouble refreshing your tasks.  Contact your administrator if you continue to have problems. The fix for this is quite simple: 1. Log in to  Central Administration 2. On the  Application Management  page, under the  Service Applications  section, click  Manage service applications 3. Highlight the  User Profile Service Application  and click the  Permissions  button in the ribbon 4. Add the service account that is configured to run the Work Management Service Application and grant  Full Control . 5. Click  OK Now the task lists refreshes without error.