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

Service Permission issue.

psp316r
16-Pearl

Service Permission issue.

Service A, is used for three different Solutions. Solution A users shouldn't be able to see the data of  Solutions B from Service A. How can I restrict this ?

@slangley @PaiChung 

Thanks,
Shashi.

1 REPLY 1
DanZ
12-Amethyst
(To:psp316r)

If your service is accessing the same data source (i.e. a data table) you have to filter the returned data yourself. That means getting the user group of the user who executed the service via "let groups = Resources["CurrentSessionInfo"].GetCurrentUserGroups();"  and filter the data accordingly.

 

If your data is stored in different entities for each solution, you can just restrict the visibility to the data entities. But then you have to catch the exception that will be thrown, if your service is trying to access data sources to which the user does not have visibility rights.

Announcements