Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 25064

SP 2013 - Get user's group and each group's parent web in rest api

$
0
0

Hi,

Does someone know how to get the group collection where a user is member of, and the parent web of each group using REST query (GET method) ?

With SP 2013's API, we usually do this :

    SPUser myUser = web.EnsureUser("CONTOSO\johndoe");
    var groups = myUser.Groups;
    var parentWebOfOwner = groups["Owner"].ParentWeb;

What I want to do is the same but using REST http queries.

Okavango


Viewing all articles
Browse latest Browse all 25064

Trending Articles



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