PDM Set EdmSysPerm on Registered User?

How can I set EdmSysPerm on Registered User?
EdmSysPerm Enumeration

First I will give some permissions, I will take back the permissions I gave before the mission task add-in was closed.

EdmUserData2 UserData = ???? // not new user
EdmSysPerm[] perms = new EdmSysPerm[2];
perms[0] = EdmSysPerm.EdmSysPerm_EditUserMgr;
perms[1] = EdmSysPerm.EdmSysPerm_EditWorkflow;
UserData.moSysPerms = perms;

I could not find the function to be removed after granting the authorization.

Have you tried looking at this example?

https://help.solidworks.com/2019/English/api/epdmapi/Vault_Utilities_Example_CSharp.htm

1 Like

@AmenJlili I tried that but there is no undo permissions function.
RemoveMembers Method (IEdmUserGroup8)
AddMembers Method (IEdmUserGroup6)
I used these two functions