Creating New users with Web API does not allow Ticketing Applications to be added on creation

I'm attempting to Create new users and add the NewUser object into a certain ticketing application, but I've noticed that when the Web API call creates the new user, there are no errors and the user is not added into the Ticketing Application.  If I make a subsequent call to Update the User object and add them to the Ticketing Application, this is successful.  Here's a test procedure of what is happening:

 

-Create NewUser object, assign all required values.  Add an OrgApplications list object of UserApplication with the ID, name, and security information of the Ticketing Application and the Security role that the user should have in the Ticketing Application.

-Run the Create User API (https://api.teamdynamix.com/TDWebApi/Home/section/People#POSTapi/people) with the NewUser object that was initiatalized above.

-On the return User object, the OrgApplications List Object is null, this can be validated in Team Dynamix when looking at the User record.

-Assign the UserApplication list that was initialized previously into the return User object's OrgApplications

-Send an additional call to the Update user API, with the return User object (https://api.teamdynamix.com/TDWebApi/Home/section/People#POSTapi/people/{uid})

-On this return "Updated" User object, validate the OrgApplications is not null.  This can also be validated in Team Dynamix on the User record, that they are now added to the Ticketing Application and assigned the role.

 

This test procedure proves that:

1. The UserApplication list is not invalid or incorrect.

2. When creating a NewUser in the Web API, the NewUser object cannot be associated to a Ticketing Application unless there is a subsequent Update call made with the returned User object.

 

Is this a bug or is this intended?  We would like to be able to assign the new users to the Ticketing application without having to make an additional Update call.

Tags webapi API web-api people
Asked by John Sommerville on Wed 8/10/16 12:54 PM
Sign In to leave feedback or contribute an answer

Answer (1)

This answer has been marked as the accepted answer
Jamey Stock Fri 8/12/16 1:32 PM

Hi John,

We do not support adding ticketing platforms to users at the time of creation. This is indicated by the OrgApplications property not being editable on the Api.NewUser object.

Our thinking was that user application management is a more routine transaction, while user creation will only happen once for a user. Due to this, we only support application management transactions in the WebAPI for existing users. If you would like this functionality, you can submit an enhancement request here.

I hope this helps to explain why we do not support application granting at the time of user creation. Please let us know if you would like additional clarification or there's anything else we can do for you.

Sincerely,
Jamey Stock
TeamDynamix

1 of 1 users found this helpful.
Is this still true? OrgApplications appear to be editable in the Api.NewUser object. - Toben Archer Tue 5/7/19 3:46 PM
Hello Toben. As of 10.3 the answer provided to this question will no longer be accurate. See the release notes here: https://solutions.teamdynamix.com/TDClient/KB/ArticleDet?ID=76193#PeopleAPI . - Mark Sayers Tue 5/7/19 3:52 PM