Hi, I need delete users from portal (previously added with LDAP) via code, i can see there is a way to remove users using the web service https://domain.com/arcgis/sharing/rest/portals/xxx789ABCDEF/removeUsers but only works to remove built-in users, not for enterprise users added with LDAP. There is a way to remove this kind of users via code?
i'll be gratefull if anyone can help me.
Thanks.
Hi Roberth,
This can be done through https://portal.domain.com/arcgis/sharing/rest/community/users/*username*/delete where *username* is replaced with the enterprise username you are trying to delete.
It Works!.
BTW: i found that if i try to delete a user via POST with this service and the user does not exist, the message that return is wrong:
{"error":{"code":403,"messageCode":"GWM_0003","message":"You do not have permissions to access this resource or perform this operation.","details":[]}}
Thanks for your help Jeff.
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.