Skip to main content
1-Visitor
November 7, 2016
Solved

User Creation Permissions

  • November 7, 2016
  • 7 replies
  • 3132 views

I have created a mashup and a number of services to create users from a mashup and give them a certain level of access.

I am able to create and update user information as an administrator/developer.  However, I have attempted to create a user from a non admin account using my mashup and I keep getting the same error:

JavaException: com.thingworx.common.exceptions.InvalidRequestException: Not authorized for ServiceInvoke on CreateUser in EntityServices


I have give all users permission to execute services for the users and read/write properties.  Are there any other permissions I need to add in order for the CreateUser service to function? 

Thanks,

Paul

​

    Best answer by Aanjan

    Paul, just to make sure, did you set RunTime Service Execute permissions for the CreateUser service in Entity Services as well?

    7 replies

    5-Regular Member
    November 8, 2016

    Hi Paul Baierl​,

    Please refer to below article. It seems related: https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS222682&lang=en_US

    Thanks,

    Ankit Gupta

    pbaierl1-VisitorAuthor
    1-Visitor
    November 8, 2016

    Ankit,

    Thank you for getting back to me.  Unfortunately it doesn't seem I can access the file in the link.  Any additional assistance you could provide would be great. 

    Thanks,

    Paul

    5-Regular Member
    November 8, 2016

    Resolution as per the article:

    • Go to Users, set Collection Permissions for Users
    • Add logged in user's User Group in Design Time
    pbaierl1-VisitorAuthor
    1-Visitor
    November 8, 2016

    Thanks Ankit,

    I appreciate the reply, but I have already tried this with no success.  I added the users group (everyone) to have full permissions during development and run-time as a test.  I still get the same error about a lack of permissions to create a user.

    I have also closed all of my browser windows after making the change to ensure they were applied.

    Thanks,

    Paul

    Aanjan5-Regular MemberAnswer
    5-Regular Member
    November 8, 2016

    Paul, just to make sure, did you set RunTime Service Execute permissions for the CreateUser service in Entity Services as well?

    pbaierl1-VisitorAuthor
    1-Visitor
    November 9, 2016

    Thank you Aanjan and Ankit for your help.  It is working now.  It was a combination of the two permissions settings that was preventing access.

    I didn't realize I had to set permissions on the Entity Services which was hidden in the system objects.

    Thanks again for the help!