I'm trying to get the list item permission using restapi in asp.net mvc. i had get the permission using below url
https://XXXXX.sharepoint.com/sites/AppDevelopment/PM/Data/_api/web/lists/getbytitle('Task')/items(45)/getusereffectivepermissions('LoginName')
Output
<?xml version="1.0" encoding="UTF-8"?>
-<d:GetUserEffectivePermissions m:type="SP.BasePermissions" xmlns:gml="http://www.opengis.net/gml" xmlns:georss="http://www.georss.org/georss" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"><d:High m:type="Edm.Int64">2147483647</d:High><d:Low m:type="Edm.Int64">4294967295</d:Low></d:GetUserEffectivePermissions>
Code i tried
string requestUrl = string.Format("{0}/_api/web/lists/getbytitle('{1}')/items({2})/getusereffectivepermissions('{3}')", siteUrl, listName, id, HttpUtility.UrlEncode(userName));
string result = RestApi_GetJsonTemp(accesstoken, requestUrl, "application/json; odata=verbose", "application/json; odata=verbose");
BasePermissions permissionJson = new BasePermissions();
using (TextReader sr = new StringReader(result))
{
JsonReader jsonreader = new JsonReader(sr, null);
permissionJson.FromJson(jsonreader);
}
how to use this high and low value to know what the permission?