I see two options:
- Why not keep the user in the group that is notified?
- Give your administrative assistant access to the administration tool and the 'Can administrate users' option.
I don't know of a method in the API to delete a user from a group.
If for some reason you are really not wanting people to access the Admin tool and do it that way then you could create a quick little form that connects to the database with a couple buttons and execute something like:
<Set Temp User>
UPDATE GroupMembers SET UserID = ' ID of the Temp Person ' WHERE GroupID = ' ID of Notification Group ' AND UserID = ' ID of the Sick Person ';
<Remove Temp User>
UPDATE GroupMembers SET UserID = ' ID of the Sick Person ' WHERE GroupID = ' ID of Notification Group ' AND UserID = ' ID of the Temp Person ';
The only thing that I found in the actual API was IEdmUserGroup6.AddMembers([array of member IDs]) but no way of removing members.
has this changed any since 2010? I want to be able to add and remove users from group programmatically. That looks possible looking at the DB structure in epdm 2012. However I would also like to add active directory users to PDM programmatically. Is that possible?
After further review and some testing I have not been able to use the api to add a user. I did try to add a user programmatically using the stored procedures in the database. I received an error at the end but it seemed to work create the user that appeared to function correctly. Not a good feeling.