cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

permission setting problem

akumar-10-11-12211
12-Amethyst

permission setting problem

 
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;

ACCEPTED SOLUTION

Accepted Solutions

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

View solution in original post

3 REPLIES 3

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.

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

slangley
23-Emerald II
(To:eengelbrecht)

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

Announcements


Top Tags