I want to get all the document libraries in which current user has full control using rest api.
it seems that we can check using effectiveBasePermissions.
I have used below script :
function GetModifiedDoclib() {
var executor;
var appwebUrl = decodeURIComponent(getQueryStringParameter("SPAppWebUrl"));
executor = new SP.RequestExecutor(appwebUrl);
executor.executeAsync({
url: appwebUrl + "/_api/SP.AppContextSite(@target)/web/lists?@target='" + hostwebUrl + "'&$select=Title,effectiveBasePermissions&$filter=BaseTemplate eq 101&$orderby=LastItemModifiedDate desc",
method: "GET",
headers: { "Accept": "application/json; odata=verbose", "X-RequestDigest": $("#__REQUESTDIGEST").val() },
success: function (data) {
var jsonObject = JSON.parse(data.body);
var results = jsonObject.d.results;
},
error: errorListHandlerXD
});
}
i have make one document library(TestDoc) and havent access of current user.another one document library(Documents) has full control.
my API Output look like :
{"d":{"results":
[{ EffectiveBasePermissions":{"__metadata":{"type":"SP.BasePermissions"},
"High":"2147483647","Low":"4294967295"},
"Title":"Documents"},
{"EffectiveBasePermissions":
{"__metadata":{"type":"SP.BasePermissions"},"High":"16","Low":"134283264"},
"Title":"TestDc"}]}}
My doubt : what are value of High and low indicated in output and how can i know user have full control to document library?
Can you please guide me?