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.



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

and that's working.

N.B: the user could not be retireved until he use the link on the sended mail to connect.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.