Removing all the roles when user id is removed/set to expired

Hi ,
I have one requirement where , currently user is remove / expired correctly but the assosicated roles are still exist and gives problem in audit.
need to write a program which will remove the roles associated with the user ID when it remove or expired ?
pls guide.
thanks

Hi,
    Use BAPI BAPI_USER_PROFILES_DELETE.
Regards,

Similar Messages

  • Report to view all the Roles and Transactions assinged to a particular user

    Hi,
    I need to develop a report to view all the Roles and Transactions assinged to a particular user along with the Authorization values. So, if provide the Username, the report should be able to give Roles, Transaction Codes and the fields and thier authorization values for that TCodes..
    Regards,
    Sreenivas Raju

    Try this FM once - SUSR_USERS_LIST_ALV . It provides a list with Roles, Profiles, and also a detail button to check the authorization values etc.
    Also try this FM - SUSR_USER_DISPLAY_WITH_AUTHS, SUSR_USER_AUTH_FOR_OBJ_GET , SUSR_USER_DISPLAY_WITH_S_TCODE

  • How to assign a single role to all the 700 bi users

    Hi all,
    I have created a new roles, which needs to be assigned to all the users in the BI. I have teh list of users but i need to copy all of them manually and assign that users with this role!!
    Is there any way in which i can use any abap programs/ function module were in i can assign this single role too all the list of users in the bi system!!
    Thanks
    Pooja

    Hi Pooja,
    I guess you are lookign for  way to upload the list of 700 users into transaction Su10 instead of copying and pasting them manually (which will need many manual copy pastes since the number of users which can be pasted into SAP in one shot will be limted to 10-20).
    There is a way to upload all 700 into SU10 transaction in a few clicks. Please follow the below steps:
    1.Get the list of all 700 users in say excel or notepad. Copy all 700 users ids (copy entire column in excel using Cntrl+C)
    2. Login to system and go to SU10 tcode.
    3. Click on 'Authorization data" tab in SU10
    4. In next page you will see a tab called "User" --> select the arrow exactly to the right side for multiple selection.
    5. In new window; there is an icon for "Upload from clipboard"(second last icon in bottom of window). Click on it and you will have the list of 700 users uploaded into SAP. In next window click on "select all" and "transfer"
    Now go into change mode in SU10 and paste the role to be added under tab "roles".
    Get back if you face any issues.
    Soumya

  • Wiping off session information of role when user goes to other role

    Hi All,
    This is very critical for us to know WHETHER FOLLOWING REQUIREMENT IS ACHIEVABLE BY CONFIGURATION OR BY CUSTOM DEVELOPMENT.
    Let us say there are 2 roles: Role A and Role B. We have application X as part of role A and application Y as part of role B.
    Since complete usage of applications: X and Y takes 10 minutes, we have set the application timeout to 10 minutes.
    Now let us say, when user goes to A and access application X, leaves the role and goes to B and accesses B and comes back to application X.
    X is reatining its session data yet, which we do not want.
    Is there any way we can delete\wipe off the session of applications related to role when user leaves that role and goes to another role.
    Thanks in advance,
    Regards,
    Ganga

    Michael,
    Thanks a lot for the reply.
    In the case you have mentioned, how does application has to know the user is 'moving away'[clicking on other role] from the application.
    Thanks in advance,
    Regards,
    Ganga

  • Assigning the role to user - not getting the page and tabs showing.

    I have a role with a page that contains 2 demo iviews.  They preview ok. but when I assign the role to user, it does not come up.  Could some one send me a help document for SP2?

    I got it.  Need to set Entry Point - Yes.

  • Disaply the all the roles for page, iview and workset

    Hi Guys,
                  I have a strange requirement. i need to display all the users that have access to a particular iview, page and workset. can anyone help me out with this.
    -Thanks

    Hi,
      Any iview or page or workset should be part of role. SO if user has access to a particular role, he will have access to the portal objects inside that role as well. So the way to go is you can get all the roles, check iViews, pages etc. If iViews or pages match, then save the role to arraylist. Now check the users who are assigned to these roles in arraylist. That may work.
    Regards,
    Harini S
    Don't forget to reward if you find the answer helpful

  • I usually have 3-4 tabs open which I am saving to read later. But I loose them all the time when firefox crashes or when another appliaction opens firefox to download. Is there a way to save my tabs ?

    I usually have 3-4 tabs open which I am saving to read later. But I loose them all the time when firefox crashes or when another appliaction opens firefox to download something and it will discard all my tabs. This is incredibly annoying, is there a way to save my tabs ? or get them back when there is no "restore session" button ?

    In Firefox Options / Privacy be sure "Remember download history" is checked. To see all of the options on that panel, "Firefox will" must be set to "Use custom settings for history".
    To find your OS information, on your Windows desktop, right-click the My Computer icon, choose Properties, under System on that small window is info about your OS.
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • Is it possible to export and import the roles and users tables?

    Hi,
    is there any possibility to export and import the role and user definitions?
    We have a SAP MDM repository with a lot of roles and users and also with a lot of changes.
    And now I'm searching for a fast and efficient way of managing the roles and users.
    Thanks and Regards, Melanie

    Hi Melanie,
    There is no export/import functionality for roles and users.  The only way to manage these in an automated way would be to write a program that uses the Java or ABAP APIs.  Both APIs expose functionality to create, update and delete roles and users.
    Hope this helps,
    Richard

  • Unselect all the rows when display my table the first time

    Hi all,
    When I execute my webdynpro the first time my table is displayed with the first row selected, but this is false, this line is not selected.
    If i execute the method get_selected_elements don't return anything in the table, but if i do a Click in this row then works fine.
    I tried to unselect all the rows when i display the table the first time in the method WDDOINIT doing the following;
    DATA lo_nd_my_table TYPE REF TO if_wd_context_node.
      DATA: lt_elements TYPE wdr_context_element_set,
                 lo_element TYPE REF TO if_wd_context_element,
                 lo_node TYPE REF TO if_wd_context_node.
      lo_nd_my_table = wd_context->get_child_node( name = wd_this->wdctx_my_table ).
      lt_elements = lo_nd_my_table->get_elements( ).
      LOOP AT lt_elements INTO lo_element.
        lo_element->set_selected( SPACE ).
      ENDLOOP.
    But, doesn't work...
    How can i do it?
    Thanks in advance.

    hi,Husalban RM     .
    You don't need to DE-SELECT each element of the context node.
    You can try the following:
    lo_node->set_lead_selection_index( -1 ).
    "lo_node is the context node which is bound to your table.
    Hope it can help you a little.
    Best wishes.

  • To see all the entries when dropping down

    Hi All, I am executing   transaction code XD03 with a particular Customer number.Then i go to 'Regional Market' in tab 'Marketing' and push on the match code for 'Regional Market'.
    Now it says 'the number of entries is restricted to 500'.But the total number of regional market is more than 500.
    How can I see all the regions when dropping down?
    If poosible please reply through mail '[email protected]'.
    Thanks in advance.
    Rgds,
    Sanjeet

    It is possible to reset the zoom size.Have you tried [[Font size and zoom - increase the size of web pages|Firefox's zoom feature]]? This will help increase the size of web pages.
    * To make things bigger, press '''Ctrl''' and '''&#43''' at the same time.
    * To make things smaller, press '''Ctrl''' and '''-''' at the same time.
    * To reset the size back to normal, press '''Ctrl''' and '''0''' at the same time.
    You can also use the [https://addons.mozilla.org/en-US/firefox/addon/2592/ NoSquint]. add-on to change the default zoom level for all websites at once. After setting your global zoom level, you can still fine-tune the zoom on individual sites.
    '''Using NoSquint:'''
    #After installing NoSquint, make sure you have the Add-on Bar displayed:
    #*Right-click the new tab button ("+") or a blank area of the tab bar to the right of it and choose Add-on Bar from the shortcut menu.
    #Click the % on the Add-on Bar to call up site preferences, then click the Global Settings button, then the Zooming tab.
    #*You can experiment with sizes larger than 125%, but it's not recommended that you go higher than 150% unless you have a large high-resolution monitor.
    If there are particular sites that still present a problem, feel free to post their URLs.
    Please let us know if this helped you!
    Thank you.

  • Vertical scrollbar not showing all the records when I scroll down.

    Vertical scrollbar not showing all the records when I scroll down.
    Using Oracle forms 10g , operating system windows
    I have two fields with number of items dispayed = 15.
    I have a vertical scroll bar with them. There are 34 records in the table but the scrollbar only shows 15 records.
    Here are the properties for block / scrollbar.
    WORK_CATEGORY
    - Subclass Information                           
    - Comments                                       
    * Navigation Style                                Same Record
    - Previous Navigation Data Block                 
    - Next Navigation Data Block                     
    - Current Record Visual Attribute Group          
    - Query Array Size                                0
    - Number of Records Buffered                      0
    * Number of Records Displayed                     60
    * Query All Records                               No
    - Record Orientation                              Vertical
    * Single Record                                   No
    - Database Data Block                             Yes
    - Enforce Primary Key                             No
    - Query Allowed                                   Yes
    - Query Data Source Type                          Table
    * Query Data Source Name                          WORK_CATEGORY
    * Query Data Source Columns                      
    * Column Name                                   JOB_TYPE
    * Column Type                                   VARCHAR2
    - Column Type Name                             
    - Parent Column                                
    * Length                                        30
    * Precision                                     0
    * Scale                                         0
    * Mandatory                                     Yes
    * Column Name                                   WORK_CATEGORY
    * Column Type                                   VARCHAR2
    - Column Type Name                             
    - Parent Column                                
    * Length                                        30
    * Precision                                     0
    * Scale                                         0
    * Mandatory                                     Yes
    - Query Data Source Arguments                    
    - Alias                                          
    - Include REF Item                                No
    * WHERE Clause                                   
    * ORDER BY Clause                                 job_type
    - Optimizer Hint                                 
    - Insert Allowed                                  Yes
    - Update Allowed                                  Yes
    - Locking Mode                                    Automatic
    - Delete Allowed                                  Yes
    - Key Mode                                        Automatic
    - Update Changed Columns Only                     No
    - Enforce Column Security                         No
    - Maximum Query Time                              0
    * Maximum Records Fetched                         0
    - DML Data Target Type                            Table
    - DML Data Target Name                           
    - Insert Procedure Name                          
    - Insert Procedure Result Set Columns            
    - Insert Procedure Arguments                     
    - Update Procedure Name                          
    - Update Procedure Result Set Columns            
    - Update Procedure Arguments                     
       Don't know where am I going wrong. I'll really appreciate if you can help me in this.
    Thanks.
    Edited by: 831050 on Sep 14, 2011 8:05 AM

    One of the items is a list item.. here are it's properties:
    * Name                                          JOB_TYPE
    * Item Type                                     List Item
    - Subclass Information                         
    - Comments                                     
    - Help Book Topic                              
    - Enabled                                       Yes
    * Elements in List                             
    * Label                                      
    * List Item Value                             LIST20
    * List Style                                    Combo Box
    - Mapping of Other Values                      
    - Implementation Class                         
    - Case Restriction                              Mixed
    - Popup Menu                                   
    - Keyboard Navigable                            Yes
    - Mouse Navigate                                Yes
    - Previous Navigation Item                     
    - Next Navigation Item                         
    - Data Type                                     Char
    - Data Length Semantics                         Null
    - Maximum Length                                30
    - Initial Value                                
    * Required                                      Yes
    * Copy Value from Item                         
    - Synchronize with Item                        
    - Calculation Mode                              None
    - Formula                                      
    - Summary Function                              None
    - Summarized Block                             
    - Summarized Item                              
    - Current Record Visual Attribute Group        
    - Distance Between Records                      0
    * Number of Items Displayed                     15
    - Database Item                                 Yes
    * Column Name                                   JOB_TYPE
    - Primary Key                                   No
    - Query Only                                    No
    - Query Allowed                                 Yes
    - Insert Allowed                                Yes
    - Update Allowed                                Yes
    - Update Only if NULL                           No
    - Visible                                       Yes
    * Canvas                                        CANVAS2
    - Tab Page                                     
    * X Position                                    47
    * Y Position                                    137
    * Width                                         187
    * Height                                        18
    - Visual Attribute Group                        DEFAULT
    - Prompt Visual Attribute Group                 DEFAULT
    - Foreground Color                             
    * Background Color                              white
    - Fill Pattern                                 
    - Font                                         
    * Font Name                                     Tahoma
    * Font Size                                     10
    * Font Weight                                   Demilight
    * Font Style                                    Plain
    * Font Spacing                                  Normal
    * Prompt                                        Job Type
    - Prompt Display Style                          First Record
    * Prompt Justification                          Start
    * Prompt Attachment Edge                        Top
    - Prompt Alignment                              Start
    * Prompt Attachment Offset                      10
    * Prompt Alignment Offset                       0
    - Prompt Reading Order                          Default
    - Prompt Foreground Color                      
    - Prompt Font                                  
    * Prompt Font Name                              Tahoma
    * Prompt Font Size                              10
    * Prompt Font Weight                            Bold
    * Prompt Font Style                             Plain
    * Prompt Font Spacing                           Normal
    - Hint                                         
    - Display Hint Automatically                    No
    - Tooltip                                      
    - Tooltip Visual Attribute Group               
    - Direction                                     Default
    - Initial Keyboard State                        Default
    - Keyboard State                                Any
        

  • I have iphone 4 with ios 7.0.3. but with ios 7.0.3 my phone is working very slow. please do something for all the iphone 4 user.

    i have iphone 4 with ios 7.0.3. but with ios 7.0.3 my phone is working very slow. please do something for all the iphone 4 user.

    Hi Tyler199869,
    If you are having issues making or receiving calls after updating your iPhone, you may find the following article helpful:
    iPhone: Troubleshooting issues making or receiving calls
    https://support.apple.com/kb/TS3406
    Regards,
    - Brenden

  • How can i do this in Captivate 7 "The idea when user click on "Correct answer" button, drag source m

    How can i do this in Captivate 7 "The idea when user click on "Correct answer" button, drag source move to drop target automatically".

    I suppose you are talking about the D&D interaction? Could you explain more? What is your level of expertise with advanced actions and Effects?

  • I want it to ask the master password all the time when I open the site which my password is saved

    I want it to ask the master password all the time when I open the site which my password is saved.
    This is not the problem, may be a feature.

    Your question is quite vague, but if I am right then, go to Tools> Options and then "Security" Tab then select "Saved Passwords" and you should find all the passwords you have saved for websites so far. If its an issue with the master passwords that is for Firefox itself, then the Master Passwords option is right above this. Have a look at the image below.

  • Where do I find the "Maestro" font in Photoshop? It used to be included with all the other fonts. It is a set of musical symbols. Thanks.

    Where do I find the "Maestro" font in Photoshop? It used to be included with all the other fonts. It is a set of musical symbols. Thanks.

    The only way I know to achieve this would be to create three separate bookmarks on the Bookmarks toolbar and click on a one that you want to load in the current tab. You can also try to right-click the Back arrow and click the entry at the bottom of the list to return to the first page.

Maybe you are looking for

  • Issues in exporting SSRS report to PDF format in Report Server - Blank spaces are deleted

    Hi Gurus, I have a problem in exporting SSRS report to PDF format. It deletes all the blank spaces when I use bullet in a Text box and try to export to PDF formt in Report Server . For example •             Project submitted to the TRC Result in PDF

  • Jagged edges on rotated picture boxes

    It seems as though it's a bug. As I rotate imported images the outer edge and hard edges in the actual images are noticably jagged. As in the example. Any suggestions?

  • Annoying page cannot be found error

    Hi, Can any one give me any direction in what I'm doing wrong here. I have an app, that I've put on apex.oracle.com, that is used for mapping values from one table to another. http://apex.oracle.com/pls/otn/f?p=44423:800 The first bit works fine, you

  • Firewire Connection History

    Can anyone advise me if it possible to determine when a firewire device (lacie quadra hard drive) was last connected. Does OS X keep a record or log of connected devices and when they were last connected? Any help would be appreciated.

  • Flash SWF/HTML animation preview stops at the same time (around 9 minute mark) without reason. (CS5)

    I have a good sized animation that I am attempting to publish using CS5, but for some reason the animation always stops around the 9 minute mark. I don't have any actionscript telling the animation to stop at that particular point, and regardless of