I'm looking to disable the Anonymous links created on my OneDrive for Business site through the REST API I used to delete the Roleassignments for Sharepoint\Reader... or Sharepoint\Writer... which used to disable those VIEW/EDIT links, but that's not anymore. I am now getting special groups
and I am using them to identify that my File's Edit/View link was created.
For disabling the link through REST API I did a POST with X-Http-Method as Delete and it removed the group as well. But the link stayed as is. Only when I disabled it through the UI then I noticed that a special user was unshared
this strange looking Title/LoginName has RoleTypeKind as 255. What exactly does 255 mean? I tried to rely on these special users for the identification of a Public exposure but they don't indicate anything about the type of Public Link they refer to. Any help would be appreciated.