I'm trying to delete a user and I always get this error:
"com.sap.security.core.persistence.datasource.PersistenceException: Principal "UACC.company.user_xxx" is not deletable."
The code I use is this:
IUserFactory userFactory = UMFactory.getUserFactory();
This user was not created via SAP.
I don't know if this has some influence in this situation.
Thanks for any help conceeded
first, welcome on SDN!
About your question: From the uniqueID of the user (as well as from your description "user was not created via SAP") I see that you are using some third party data store (LDAP).
You have connected the LDAP as read only (so you cannot delete users from it) or there are security settings within your LDAP which prohibit a deletion in this situation.
Hope it helps
PS: Please consider rewarding points for helpful answers on SDN. Thanks in advance!