Skip to Content
author's profile photo Former Member
Former Member

About assigning users to role

Hi all.

Could I assign users to a role by web dynpro callable object?

I mean , there is a inputfield in web dynpro view,if I enter a name ,will call some methods to assign the name to a role.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Feb 25, 2009 at 08:01 AM

    The assigning and unassigning of the users from the roles can be made dynamic using the IRole, IRoleFactory API's.

    Check this blog: /people/vijai.mohan/blog/2006/04/25/restricting-usage-of-iviews-and-pages

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 25, 2009 at 08:47 AM

    Hi

    Ya it is possible through IRole and IUser API, take help form following thread and code

    1.[GP|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e3f07a7a-0601-0010-ebbd-b9cfb445b814]

    2.[example how to Call to IUSer and IRole|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e0957cb6-5103-2a10-6d9d-a0a4d68c8bf1]

    3. In second thread the user data is populated here you have to put your code

    example IRole role;

    role.addUserMember(arg0)

    role.removeUserMember(arg0)

    Hope you will come to the solution.

    Best Regards

    Satish Kumar

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.