Skip to main content
Jul 15, 2020 8:55 AM UTC
Solved

how to create user by using mashup field add user in thingworx user list and in user group

Hello,

         I have to create multiple user by using mashup field  and save that user in thingworx user list  and in particular user group. 

Can Someone please let me know the update for the same.

 

Thanks in advance,

Riya

 

 

Capture.PNG

 

rjanardanAnswer
Jul 15, 2020 9:09 AM UTC

In Service creation page, you will find a snippet for CreateUser under EntityServices. You could call this upon button click to create a user and use this article to add the user to the required usergroup. 

3 replies

rjanardanAnswer
Jul 15, 2020 9:09 AM UTC

In Service creation page, you will find a snippet for CreateUser under EntityServices. You could call this upon button click to create a user and use this article to add the user to the required usergroup. 

RM12Author
Jul 15, 2020 12:42 PM UTC

Thanks for your response

 

I have a similar doubt, 

How do I assign project to user through a ThingWorx service?

Jul 17, 2020 2:55 PM UTC

You can use SetProjectName service as below:

 

 Users["MyUser"].SetProjectName({
    projectName: "MyProjectName" /* PROJECTNAME */
});