如何在线使用SharePoint中的REST API获取组列表. [英] How get the list of groups using REST api in sharepoint online.

查看:117
本文介绍了如何在线使用SharePoint中的REST API获取组列表.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

例如,在下面的代码片段中,使用REST API在线获取了sharepoint中的网站列表.我们正在寻找类似的REST API,以在线获取共享点中的群组列表(即,我们不确定是否存在这种类型的REST API).请帮助我们 在上面.

Like, in below code snippet are getting list of sites in sharepoint online using REST api. We are looking for the similar REST api to get the list of groups in sharepoint online(i.e. we are not sure such type of REST api is there or not). Please help us on it.

$.ajax({
  url: "http://<site url>/_api/web/webs",
  type: "GET",
  headers: { "accept": "application/json;odata=verbose" },
  success: function (data) {
           console.log(data.d.results);
    },
  error: function (error) {
        alert(JSON.stringify(error));
    }
});

推荐答案

从此处开始:
Start here: https://msdn.microsoft.com/en-us/library/office/dn531432.aspx?f=255&MSPPError=-2147217396


这篇关于如何在线使用SharePoint中的REST API获取组列表.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆