Office 365 Sharing.js
-
16-12-2020 - |
문제
I want to share my site to external users, and so, I thought that i would use sharing.js and exeutethis function on button click :
EnsureScriptFunc('sharing.js', 'DisplaySharingDialog', function(){DisplaySharingDialog('mySiteURL')});
my question is how can i specify the default group and don't let the user choose it(if possible) and how can I execute a custom js code after that.
thanks.
해결책
i finally drop the sharing.js and instead used this :
var options =
{
title: "Add External User",
url: _spPageContextInfo.webAbsoluteUrl + "/_layouts/15/aclinv.aspx?GroupId=" + currGroupID,
dialogReturnValueCallback: setUserData
};
SP.UI.ModalDialog.showModalDialog(options);
and that's working.
N.B: the user could not be retireved until he use the link on the sended mail to connect.
제휴하지 않습니다 sharepoint.stackexchange