在安装sharepoint托管应用程序时,在sharepoint 2013在线站点中创建一个组。 [英] create a group in sharepoint 2013 online site when sharepoint hosted app installed.

查看:111
本文介绍了在安装sharepoint托管应用程序时,在sharepoint 2013在线站点中创建一个组。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友们,

如何以编程方式创建具有sharepoint托管应用程序权限的自定义组和用户

How to create Custom group and User with permission in sharepoint hosted app programmatically

当SharePoint托管应用程序安装时。需要在网站设置中添加主站点组和权限列表。

when SharePoint hosted app Installed .It need to add into main sites Group And Permission list in site setting.

请提供解决方案。

谢谢

Siddheshwar

Siddheshwar

推荐答案

嗨Siddheshwar

Hi Siddheshwar

SharePoint托管应用程序没有应用程序安装事件(仅托管或自动托管提供程序),因此如果要从SharePoint托管应用程序创建组,则需要在应用程序首次运行时添加逻辑以创建它,然后验证组
已经存在。您可以使用SP.GroupCollection.add()来创建组。

SharePoint hosted apps don't have the app install event (only provider hosted or auto-hosted), so if you want to create the group from the a SharePoint hosted app, you need to add the logic on the app first run to create it and then to validate the group is already there. You can use SP.GroupCollection.add() to create the group.

本文介绍如何添加用户:

This article describes how to add the users:

如何:使用JavaScript与用户和群组合作

亲切的问候

Yina


这篇关于在安装sharepoint托管应用程序时,在sharepoint 2013在线站点中创建一个组。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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