tag:blogger.com,1999:blog-6408926148563628705.post3642950101754464637..comments2024-03-11T05:56:35.539+00:00Comments on Project Server & Online Behind The Scene: How to deactivate a user with AD account deleted and no AD sync ?Jérome Charlonhttp://www.blogger.com/profile/12920788255130284431noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-6408926148563628705.post-17595304400303997932021-05-12T17:33:54.750+01:002021-05-12T17:33:54.750+01:00We recently set up AD sync after having lots of us...We recently set up AD sync after having lots of users manually added over the time. I'm looking for a way to mass deactivate any PWA users who do not have a valid AD account. SharePoint Black Belthttps://www.blogger.com/profile/07844455814445490218noreply@blogger.comtag:blogger.com,1999:blog-6408926148563628705.post-35379526558599892402019-08-08T09:08:36.253+01:002019-08-08T09:08:36.253+01:00There is a $res.DeleteObject() function, which sho...There is a $res.DeleteObject() function, which should be used instead of $res.IsActive = $false. Please note, that $projContext.EnterpriseResources.Update() and $projContext.ExecuteQuery() could be necessary after the delete action.Aleksandrs Selivanovshttps://www.blogger.com/profile/15921263740783808812noreply@blogger.comtag:blogger.com,1999:blog-6408926148563628705.post-5498000129275026222019-08-07T17:03:15.583+01:002019-08-07T17:03:15.583+01:00Is there any way to delete resources through scrip...Is there any way to delete resources through script instead of deactivate?Vjhttps://www.blogger.com/profile/06433806984791914423noreply@blogger.comtag:blogger.com,1999:blog-6408926148563628705.post-90530436389997060662019-08-07T17:02:23.427+01:002019-08-07T17:02:23.427+01:00Is there anyway to delete them instead of deactiva...Is there anyway to delete them instead of deactivate through script?Vjhttps://www.blogger.com/profile/06433806984791914423noreply@blogger.comtag:blogger.com,1999:blog-6408926148563628705.post-3326656873535809702018-12-17T04:06:32.222+00:002018-12-17T04:06:32.222+00:00Thanks so much for the share AleksandrsThanks so much for the share AleksandrsJérome Charlonhttps://www.blogger.com/profile/12920788255130284431noreply@blogger.comtag:blogger.com,1999:blog-6408926148563628705.post-79367654714487554652018-12-13T08:37:55.012+00:002018-12-13T08:37:55.012+00:00Thank you very much for this useful information!
...Thank you very much for this useful information!<br /><br />Wanted to add more - this is also valid in Project Online environment, deactivating users in UI and by PowerShell script:<br /><br />Add-Type -Path "\Microsoft.ProjectServer.Client.dll"<br /><br />$pwaUrl = "https://.sharepoint.com/sites/pwatest"<br />$username = "name.lastname@tenant.domain"<br />$cred = Aleksandrs Selivanovshttps://www.blogger.com/profile/15921263740783808812noreply@blogger.com