I need to get the User group details. GroupName, Permissions levels, Created by Created date, Modified by , Modified Date. I am able to get the Group Name and Permission Levels. How to get the Created by Created date, Modified by , Modified Date in CSOM.


1 Answer 1


You can treat UserInfoList like normal list and get these information

ClientContext clientContext = new ClientContext("http://XXXXXXXXXX/");
Web web = clientContext.Web;
List siteUserInfoList = web.SiteUserInfoList;
CamlQuery query = new CamlQuery();
query.ViewXml = "";
IEnumerable<ListItem> itemColl = clientContext.LoadQuery(siteUserInfoList.GetItems(query));
foreach (var item in itemColl)
    Console.WriteLine($"ID:{item.Id}  Created:{item["Created"]} Modified:{item["Modified"]}")
  • Piotr Sulowski: Thanks For your input. My requirement is SiteSetting-->Site Permission, we can see the permissions page. There will be user group permissions are there. I want those data "Created by Created date, Modified by , Modified Date " Nov 2, 2020 at 13:08
  • Site Permissions (Role Assigments) are difrent thing than group details. SharePoint does not store informations about role assigment date etc. Nov 2, 2020 at 14:03
  • Thank you so Much Piotr Sulowski Nov 2, 2020 at 15:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.