Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function fGetUserId(X) {
- $.ajax({ // get the Ids of users, return to populate IdArray
- url: xhost + "/portal/_api/web/SiteUsers?$select=Id&$filter=Email eq '" + X + "'",
- type: "GET", headers: { "Accept": "application/json;odata=verbose", }, //verbose
- success: function (data) {
- var xuserid = data.d.results[0].Id;
- return xuserid;
- },
- error: function (error) { alert(JSON.stringify(error)); }
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement