REST API: Get Control Groups by User Group?

Hi there,

Is there any way to get a collection of control groups using a user group as a filter from the existing REST services, or does this need to be exposed via the custom Data Service? I'm trying to build a drop down for a custom screen. 

I can't find a way to do this using either ReferenceDataService/ControlGroups or anything in the Authentication / Authorisation Service.

Thanks,

Patrick. 

Parents
  • Hi Patrick

    Not sure if this helps! If you are creating a browser based custom screen you can get the usergroup of the current session putting <<UG>> within the URL of the custom tab.  So in a custom we have setup for validating direct debit information I use this to determine which payment methods are available within my script.

    So the URL would look like below;

    http://development.consortium.wmc/WNO_DD_Test/Default.aspx?id=<<key>>&ug=<<ug>>

    This is a custom tab making full use of the rest services too!

    Thanks

    Nick

     

  • Thanks Nick,

    I am able to retrieve the user group from the query string and use that to create a UserCredentials object, but when I hit the control groups endpoint I get all of them back, not just the ones the user group in question has access to.  

    I've created a stored proc I can use to get the data but was curious if there was something available out of the box.

    Patrick. 

Reply
  • Thanks Nick,

    I am able to retrieve the user group from the query string and use that to create a UserCredentials object, but when I hit the control groups endpoint I get all of them back, not just the ones the user group in question has access to.  

    I've created a stored proc I can use to get the data but was curious if there was something available out of the box.

    Patrick. 

Children
No Data