Skip to main content
14-Alexandrite
July 15, 2020
Solved

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

  • July 15, 2020
  • 3 replies
  • 1634 views

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

 

Best answer by rjanardan

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

rjanardan16-PearlAnswer
16-Pearl
July 15, 2020

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. 

RM1214-AlexandriteAuthor
14-Alexandrite
July 15, 2020

Thanks for your response

 

I have a similar doubt, 

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

16-Pearl
July 17, 2020

You can use SetProjectName service as below:

 

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