Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatically set (or change) the master role

0 Kudos

Hi all.

Is there a way, maybe a function, to set the master role of a single role?

Fill the "Derive from role" field.

I mean, other than a direct UPDATE AGR_DEFINE .... which works, btw

I would prefer a "lawful" method.

Any hint?

As an alternative also the creation of a new role with the master role set.

My current method is to create the roles via PRGN_RFC_CREATE_ACTIVITY_GROUP and then use SECATT to set the master and do other things.

Thank you

1 ACCEPTED SOLUTION

michael_kozlowski
Active Contributor
0 Kudos

Check FM S_AUTH_CREATE_AGR whether it fulfills your requirement.

4 REPLIES 4

michael_kozlowski
Active Contributor
0 Kudos

Check FM S_AUTH_CREATE_AGR whether it fulfills your requirement.

0 Kudos

Great ... it works!

Thank you

0 Kudos

Great ... it works!

Thank you

0 Kudos

Hi again.

Yes it works but..... I was too fast in the test.

It seems that the function creates a new role.

In other words if I execute the function against role XXX which was created before (with texts, profile generated, etc) and then I execute S_AUTH_CREATE_AGR, the result is a NEW role with the same name, with the parent role assigned but without all the features previously set.

Any further hint?

Thank you

Lorenzo