1

We created a bunch of users that we had to then delete in Office 365. I understand the default retention policy is 30 days so hopefully they will disappear soon.

Is their a way of determining a deleted user from a regular user in the restful http://<site url>/_api/web/siteusers in SharePoint (I can't see a difference and my app access restricts me to less than full control so I can't use the SP properties on the user object) and short of that is there a way they can be purge early. This is more of a problem in the http://<tenant>-my/_api/web/siteusers specific result set.

1 Answer 1

0

issue is its online 365 so it wont be easy and you wont like the answer.

You have to make sure its on sharepoint side that the user still exists....

within sharepoint goto the webapplication site collection root site to see all users within the site.

access the User Information list by adding /_catalogs/users/simple.aspx ... e.g.

http://test:5440/_catalogs/users/simple.aspx

check to see if the user still exists there? if not than the user would be within your domain users usually within active directory.

as this is 365 the following is not possible:

if this was on premis than you have better options of going to central admin and running schecheduled timer jobs. When you call the service or any function that removes a web/site/sitecollection/ and/or users than it usual create a timer job service to be scheduled. If you were to have access to central admin you could go into timer shedules to check all jobs and locate the timer job and select it to run now. That would update sharepoint with the content database to reflect changes made. I think its User Profile Synchronization service timer job that will run against the content database with deleted users within the User Profile Synchronization service application deleted list.

so you could run the service again within central admin or make that timerjob run now rather than later. But this is all a presumption that the user has been deleted from the hidden list noted above and if still shown means that the user is within active directory.

timer jobs (does not apply to 365)

http://technet.microsoft.com/en-us/library/cc678870(v=office.15).aspx

how to properly remove users profiles

http://office.microsoft.com/en-gb/office365-sharepoint-online-enterprise-help/manage-sharepoint-online-user-profiles-from-the-sharepoint-admin-center-HA102772733.aspx

similar method to on premis method but for 365:

use the managment shell! this will work instantly:

Remove-SPOUser -Site https://contoso.sharepoint.com/sites/sc1 -LoginName [email protected] -Group "SC1 Owners"

This example removes a user who has the email address [email protected] from the group SC1 Owners in the site collection https://contoso.sharepoint.com/sites/sc1.

http://technet.microsoft.com/en-us/library/fp161381

but your limmited and the above will fail, why? becasue you need to be at site collection admin level and global admin level for it to work which according to you, you are not!

so you are only left with this option that puts you back to square one! and would mean you have to wait till the retention policy is over for the timer job to kick in!

  1. sign in to the Office 365 admin center with your SharePoint Online administrator username and password

  2. Choose Admin > SharePoint. You’re now in the SharePoint Online admin center.

enter image description here

  1. Choose User Profiles.

  2. Under People, choose Manage User Properties.

  3. On the Manage Profile Properties page, in the Property Name column, select the profile property that you want to remove, and then click Delete.

    Note If the Delete command is grayed out, the property you are trying to delete is a default property in SharePoint Online and it cannot be deleted.

  4. In the dialog box, verify that you have selected the correct profile property, and then click OK.

http://office.microsoft.com/en-gb/office365-sharepoint-online-enterprise-help/manage-sharepoint-online-user-profiles-from-the-sharepoint-admin-center-HA102772733.aspx

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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