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

UserGroup Regions

ablyth
10-Marble

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
cdovholuk
12-Amethyst
(To:ablyth)

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)


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!    

ckaminski
14-Alexandrite
(To:cdovholuk)

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. 

That's a shame,

Looking forward to 6.8!

Alan,

Announcements


Top Tags