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: 

Deleting system access of a userid in CUA system

Former Member
0 Kudos

Hi Gurus,

I used a function module BAPI_USER_LOCACTGROUPS_DELETE to delete the roles assignment to user-id in CUA system, this function module deletes the roles assignment but the system name is still attached to the user-id in CUA system.

I tried to find any function module which deletes the system access of the user-id in CUA system, but I couldn't. Does any one of you used a function module which does this function if so please let me know

Example:

ZUSER1 has access to two system DC0CLNT110 and DC1CLNT110 and for these two system one role is assigned for each system as below

ZUSER1==>DC0CLNT110==>ZBASICROLE_DC0

ZUSER1==>DC1CLNT110==>ZBASICROLE_DC1

After the function module BAPI_USER_LOCACTGROUPS_DELETE is run in CUA, in SU01, it shows like this

ZUSER1==>DC0CLNT110

ZUSER1==>DC1CLNT110

I am looking for a means to not to have the system assignment in SU01 for the user id.

Thanks & Regards,

Hay

5 REPLIES 5

0 Kudos

Hi,

After role deletion, you known wich system has not role assignmentin the user, so you can read user data with the FM BAPI_USER_GET_DETAIL, you wil get all information about user, you can alter UCLASSSYS table, excluding the system has not role assigment, after that using FM BAPI_USER_CHANGE update system assigment.

You must declare all variables and structures for these BAPIs.

Regards,

Fernando.

Former Member
0 Kudos

This is correct, as you are only removing the role and not the system assignment.

There is no error.

Cheers,

Julius

Former Member
0 Kudos

Hi,

Thanks for the information.

I am looking for a function to delete the system acces and role assignement.

When I use the function BAPI_USER_GET_DETAIL, it doesn't return any value in UCLASSSYS parameter, if that is the case please let me know how to use it. Did I miss anything.

Regards,

Hay

0 Kudos

Hi,

am looking for a function to delete the system acces and role assignement.

You can use FM BAPI_USER_SYSTEM_ASSIGN to change User/System Assignments in CUA Central System or FM BAPI_USER_DELETE to delete a User ID

FM BAPI_USER_LOCACTGROUPS_DELETE deletes Profile Assignments for Dependent Systems as you have already used in your system.

Thanks

Sandipan

Former Member
0 Kudos

Hi

In Tcode SU01, You will see a System Tab, Select the System for which you want to delete access, and delete that System.

This action will remove the System access to User.

Br

Mohan