Skip to main content
1-Visitor
January 17, 2019
Solved

permission setting problem

  • January 17, 2019
  • 2 replies
  • 1801 views

 
We have created a user Group let's say 'Comau' under this user group we have various types roles like Admin, Supervisor etc.
We noticed that if we login through Admin type of user under 'Comau' group and try to execute our services of updating property value via service on Mashup using Things[thingName][propertyName] = value; then it gives error as
[context: com.thingworx.webservices.context.HttpExecutionContext@555ebcca][message: Execution error in service script [updatePartLifeTimeProperties] :: Wrapped java.lang.NullPointerException (updatePartLifeTimeProperties#12)]
The Line #12 on this service has snippet like Things[thingName][propertyName] = value;

Best answer by eengelbrecht

Hi,

Based on the limited detail given:

Make sure that the user group that your Admin user is in has permissions to execute the service "updatePartLifeTimeProperties". Depending on your service, SystemUser or your Admin user also needs permissions to write to the properties that are being updated in the service "updatePartLifeTimeProperties". If at some point in the service you see or call the current value of the property, you should give read permissions as well.

If this doesn't help, please post the code for the service as well as the permissions you have given.

 

Thanks

2 replies

5-Regular Member
January 21, 2019

Hi, 

 

I don't quiet get the question.

1. One user group only define one kind of role, unless some of the members are also in another group

2. Was your "admin" user part of system "administrators" group? 

3. Was the admin user you choose able to trigger other services?

4. Does real Administrator user able to trigger this service? the problem might be in your coding.

1-Visitor
January 21, 2019

Hi,

Based on the limited detail given:

Make sure that the user group that your Admin user is in has permissions to execute the service "updatePartLifeTimeProperties". Depending on your service, SystemUser or your Admin user also needs permissions to write to the properties that are being updated in the service "updatePartLifeTimeProperties". If at some point in the service you see or call the current value of the property, you should give read permissions as well.

If this doesn't help, please post the code for the service as well as the permissions you have given.

 

Thanks

Support
March 14, 2019

Hi @akumar-10-11-12211.

 

If one of the previous responses solved your issue, please mark the appropriate one as the Accepted Solution for the benefit of others on the community.

 

Regards.

 

--Sharon