create an user programmatically
Hi,
How do I create an user programmatically? From the comment of IContributorService.saveContributor(IContributor), I know this method can create a contributor in the repository. However, I have no idea how to create a IContributor object. Can anybody give me a hand?
I do know how to create a workitem, by using the method
IWorkItemService.createWorkItem2. However, I can't find an analogous method in the IContributorService!!!
Please help! Thanks!
Annie
How do I create an user programmatically? From the comment of IContributorService.saveContributor(IContributor), I know this method can create a contributor in the repository. However, I have no idea how to create a IContributor object. Can anybody give me a hand?
I do know how to create a workitem, by using the method
IWorkItemService.createWorkItem2. However, I can't find an analogous method in the IContributorService!!!
Please help! Thanks!
Annie
One answer
IContributor teamMember = (IContributor) IContributor.ITEM_TYPE.createItem();
HTH
Darins
Hi,
How do I create an user programmatically? From the comment of IContributorService.saveContributor(IContributor), I know this method can create a contributor in the repository. However, I have no idea how to create a IContributor object. Can anybody give me a hand?
I do know how to create a workitem, by using the method
IWorkItemService.createWorkItem2. However, I can't find an analogous method in the IContributorService!!!
Please help! Thanks!
Annie