private GetSiteUsers():void
{
pnp.sp.web.siteUsers.get().then(function(response){
console.log(response);
for(let index:number=0;index<response.length;index++)
{
console.log("Title :"+response[index].Title+
" LoginName:"+response[index].LoginName+" Email:"+response[index].Email);
}
}).catch(function(exception){
alert("Something went wrong :"+exception);
})
}
No comments:
Post a Comment