12-30-2010 1:12 PM
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
12-30-2010 4:06 PM
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.
12-30-2010 8:59 PM
This is correct, as you are only removing the role and not the system assignment.
There is no error.
Cheers,
Julius
01-03-2011 6:34 AM
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
01-03-2011 8:01 AM
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
01-04-2011 11:17 AM
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