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

UserGroup Regions

Highlighted
Regular Member

UserGroup Regions

Hi,

 

Does anyone know if it is possible with the UserGroup object to return the Regions that the group has visibility for? I can easily return if the regionsecurity is enabled/disabled, but can't find in the documentation where to return any regions assigned?

 

Regards,

Alan

4 REPLIES 4
Highlighted

Re: UserGroup Regions

I see the UserGroup having a list of "RegionReference". I think that's what you mean right?  THese are 'reference' objects, lightweight versions of the full object. To get the full object you'll need to find them out via the RegionBridge. for example:


UserGroup ug = userGroupBridge.findOne(new UserGroupCriteria(name:"my_user_group"))


return regionBridge.findById(ug.regions[0].systemId)


Highlighted

Re: UserGroup Regions

Oh a quick aside... Once you are on 6.8 you can get to all the javadoc via the artisan portion of the platform at https://yourPlatformBaseUrl/artisan/apidocs/v2/

You can then go to artisan/apidocs/v2/com/axeda/services/v2/UserGroup.html and see the javadoc for UserGroups and it shows you:

public List<RegionReference> getRegions()

cheers!    

Highlighted

Re: UserGroup Regions

This feature is not available on 6.6 or prior, so if Alan is not using 6.8, then I believe that no, there is no way for him to get  this data. 

Highlighted

Re: UserGroup Regions

That's a shame,

Looking forward to 6.8!

Alan,

Announcements

Thingworx Navigate content has a new home! Click here to access the new Thingworx Navigate forum!