I've created this function to delete a user from my site collection.
function removeUserFromSite(){
userHTML = $('#my_SiteUsers option:selected').text();
//check if default user selected alert(user);
if(user!="default"){
var removeConfirm = confirm("You are about to delete "+userHTML+" from SharePoint. Are you sure?");
if(removeConfirm){
$().SPServices({
operation:"RemoveUserFromSite",
userLoginName: user,
async:true
});
}
}else{
alert("Please select a user");
}
}
Error I get in firebug: This operation is available only for a web with unique permissions
I don't understand why I get this if I'm deleting from the Site Collection, what could the collection be inhering from?