Quantcast
Channel: Developing Apps for SharePoint 2013 forum
Viewing all articles
Browse latest Browse all 8089

GetUserEffectivePermissions(loginName) REST call on a list

$
0
0

I am trying to use the GetUserEffectivePermissions method on a list in the REST interface. I am using the loginName for my own user on my developer site. The value of my login name looks like this:

i:0#.f|membership|jcrowley@jcrowleyapps.onmicrosoft.com

When I pass that value to this REST endpoint:

GET /_api/lists/getbytitle('books')/getusereffectivepermissions('i%3A0%23.f%7Cmembership%7Cjcrowley%40jcrowleyapps.onmicrosoft.com')

I get a 400 (bad request) error, with this message:

"A potentially dangerous Request.Path value was detected from the client (:).

Is there any way to pass the full login name value to the REST endpoint without generating this error? Other permutations of my login name generate errors indicating that the user doesn't exist.


Viewing all articles
Browse latest Browse all 8089

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>