cancel
Showing results for 
Search instead for 
Did you mean: 

Query Business Catalogs for user

former_member306668
Participant
0 Kudos

Hi;BAdI: Authorization to Edit Projects

We like to utilise Custom Business Logic to restrict the users that can edit a customer project to users that are one of the project roles or users that belong to a specific business catalog. The BAdI: Authorization to Edit Projects has some sample code to check the project roles, which works fine.

However we are not able to to find a released CDS View that we could utilise to cater for the second requirement. Is there a view available that we can query to check if a user belongs to a given business catalog (or any function we could use)

Thanks

Thomas

Accepted Solutions (1)

Accepted Solutions (1)

former_member306668
Participant
0 Kudos

Our current workaround is to create a custom business object, containing the user ids of the users with the additional access. We can query this CDS View. Basically if the user id in the CBO, the user can edit the project (even if they are not one of the 4 project roles).

Answers (2)

Answers (2)

MartyMcCormick
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Thomas

Unfortunately, I dont think the second requirement can be met because there is no direct relationship between business catalog and user. Users are assigned to business roles, which in turn contain business catalogs. I understand what you want to check but dont think it is feasible unfortunately--I'm not even sure if checking business user to role assignment is feasible in CDS to be honest (other than using the IAM app Amith pointed out)...

Thanks,

Marty

Amith_Nair
Advisor
Advisor
0 Kudos

Hi borntosucceed

We have been getting a lot of requirements on this direction, unfortunately, we may not necessarily find a relevant CDS view in this direction, although there are bunch of them listed which are not released and you may find them in the app 'view browser' app however, we have this functionality available in the form of an app called 'IAM Information system'. This helps you find your requirement(in a way), can you please take a look at them(screenshot attached for your reference)

Let me know if this helps!

Thanks again! Amith Nair

former_member306668
Participant
0 Kudos

Thanks amiths.nair2 ;

Unfortunately this does not help us unless there is CDS view that we can query from the BAdI code. Alternatively is there any ABAP function one can call for this?

Regards

Thomas

Amith_Nair
Advisor
Advisor
0 Kudos

Hi Thomas,

I continue to research as we discuss this topic. Alternatively, can you try to combine the view C_EngagementProjectRoles and C_EngmntProjectIDGenerate(or may be I_EngagementProject) and see if this works. You can apply filters on the CDS view to create role restrictions.

I myself have not tried this, but can let you know. . Thanks again! Amith Nair