Extract the userID that set a role for a specific user

Hi all @SAP Forums,
I'm going to write a simple report to extract some information about users and role assignments in the system I'm working on.
The requirements is quite simple; for every user in the USR02 table, I have to extract some info about the roles the user has.
In order to do so, it's quite straightforward to find roles for a particular user looking into the AGR_USERS table, but ... I'd like to know if there's a way to find the user who set the role assignment for that specific user; the problem is that I cannot find that information in any AGR* tables, so I start to think it's not a stored information I can retrieve in any way.
Any hints/suggests you can give me? Thanks in advance.

Hello muthu,
useful link to refer to when I'll need to extract a full username (first and surname) for a userId. But the question, forgive me if I've been not-so clear, was different.
A (key) user, say A123456, sets a role for another user (A00000) in SRM... let's suppose now A00000 becomes a buyer. I'd like to know if there's a way, starting from the user A00000, to understand WHO had given him his role (in this case, A123456) and WHEN... I can see the CHANGE_DAT field in AGR_USERS about the "when"... where can I (if I can, obviously) find WHO set the role for A00000 ?
Thanks again, sorry if I've been not that clear in explaining

Similar Messages

  • Office 365 API, error: The token has invalid value 'roles' for the claim type ''

    Hi guys,
    I am trying to develop a Daemon / Server application using the new Office 365 APIs. I have added a new application to Azure Active Directory. I am using cURL + the app ID and secret to get a JWT token, this is the exact request:
    curl -X POST https://login.windows.net/TENANT_KEY/oauth2/token \
    -F redirect_uri=http://spreadyDaemon \
    -F grant_type=client_credentials \
    -F resource=https://outlook.office365.com/ \
    -F client_id=XXXX \
    -F client_secret=XXXX=
     I get back a JWT however it has no scopes for access set here is the decoded JWT claims:
    "ver": "1.0",
    "aud": "https://outlook.office365.com/",
    "iss": "https://sts.windows.net/TENANT_KEY/",
    "oid": "17fa33ae-a0e9-4292-96ea-24ce8f11df21",
    "idp": "https://sts.windows.net/TENANT_KEY/",
    "appidacr": "1",
    "exp": 1415986833,
    "appid": "XXXX",
    "tid": "e625eb3f-ef77-4c02-8010-c591d78b6c5f",
    "iat": 1415982933,
    "nbf": 1415982933,
    "sub": "17fa33ae-a0e9-4292-96ea-24ce8f11df21"
    Therefore when I do a request to the exchange API endpoint I get the following response:
    HTTP/1.1 401 Unauthorized
    Cache-Control: private
    Server: Microsoft-IIS/8.0
    request-id: d08d01a8-7213-4a13-a598-08362b4dfa70
    Set-Cookie: ClientId=WDALDNO0CAIOOZDZWTA; expires=Sat, 14-Nov-2015 16:40:59 GMT; path=/; HttpOnly
    X-CalculatedBETarget: am3pr01mb0662.eurprd01.prod.exchangelabs.com
    x-ms-diagnostics: 2000001;reason="The token has invalid value 'roles' for the claim type ''.";error_category="invalid_token"
    X-DiagInfo: AM3PR01MB0662
    X-BEServer: AM3PR01MB0662
    X-AspNet-Version: 4.0.30319
    Set-Cookie: exchangecookie=6bf68da033684824af21af3b0cdea6e3; expires=Sat, 14-Nov-2015 16:40:59 GMT; path=/; HttpOnly
    Set-Cookie: [email protected]=[email protected]4Wbno2ajNGQkZKWnI2QjJCZi9GckJKBzc/Oy9LOzdLOy6vOycXLz8XKxoGaio2PjZvPztGPjZCb0ZqHnJeekZiak56djNGckJI=; expires=Sun, 14-Dec-2014 16:40:59 GMT; path=/EWS; secure; HttpOnly
    Set-Cookie: [email protected]=[email protected]4Wbno2ajNGQkZKWnI2QjJCZi9GckJKBzc/Oy9LOzdLOy6vOycXLz8XKxg==; expires=Sun, 14-Dec-2014 16:40:59 GMT; path=/EWS; secure; HttpOnly
    X-Powered-By: ASP.NET
    X-FEServer: DB4PR02CA0026
    WWW-Authenticate: Bearer client_id="00000002-0000-0ff1-ce00-000000000000", trusted_issuers="00000001-0000-0000-c000-000000000000@*", authorization_uri="https://login.windows.net/common/oauth2/authorize", error="invalid_token",Basic Realm="",Basic Realm=""
    Date: Fri, 14 Nov 2014 16:40:59 GMT
    Content-Length: 0
    I have asked a stack overflow question here: http://stackoverflow.com/questions/26950838/office-365-api-error-the-token-has-invalid-value-roles-for-the-claim-type
    Any help on the matter will be hugely appreciated, thanks!

    Hi Manu,
    To wrap this thread up; I have had an answer on stack overflow.
    It appears that currently the grant type client_credentials is not supported, according to a comment on this blog post by Matthias' http://blogs.msdn.com/b/exchangedev/archive/2014/03/25/using-oauth2-to-access-calendar-contact-and-mail-api-in-exchange-online-in-office-365.aspx 
    "There is no way in the code flow to avoid username/password. We're working on a client credential flow for later this fall that will give you the functionality required to run background services. For this you will not need a username/password,
    but the application will directly assert its identity and authenticate as itself."
    Unfortunately I require client_credentials for a daemon process, Q4 is the scheduled release for support for this grant time.
    Thanks for the help,
    Nick

  • HT1386 I cannot sync my iPod with the Playlists that I want. For example, I have all the songs in my classical Playlist checked but it doesn't appear in my iPod after syncing. Also I don't get an opportunity to review sync options.

    I cannot sync my iPod with the Playlists that I want. For example, I have all the songs in my Classical Playlist checked, but after syncing it does not appear on my iPod. Also, there are no opportunities to change syncing options. None are listed in the left column of my iTunes screen.

    Hello Jefflo64,
    Thank you for the details of the issue you are experiencing with syncing music to your iPod.  For issues like this, I recommend resyncing the music to your iPod.
    If you are syncing automatically, resync content to the iPod by unchecking "Sync Music" and clicking "Apply,"  then checking "Sync Music" and clicking "Apply" again.
    You can find the syncing steps in the following article:
    iTunes 11 for Windows: Set up syncing for iPod, iPhone, or iPad
    http://support.apple.com/kb/PH12313
    Thank you for posting in the Apple Support Communities.
    Best,
    Sheila M.

  • What are the userid,password, and host name for oracle 9i?

    HI Guys.
    I am a research student at the University and the I recently downloaded Oracle 9i for my research. But the problems is also with seting it up. Please could you show me the userid, password, and host name for oracle 9i.
    Thanks in advance for your cooperations.
    Malinga R
    [email protected]

    I believe that starting with 9.2, you have to specify different passwords when you install (can't be the default).
    Justin

  • How to disable the validity of a particular Role for 100 users, in a single

    Hi
    How to disable the validity of a particular Role
    which is assigned to 100 users. (disabling the role of change the validity of the role )
    at present am doing manually, by entering into each user and changing the validity of the role
    Thanks.

    > How to disable the validity of a particular Role for 100 users, in a single ...
    ... shot?
    Assign a reference user to the 100+ users and create events in the factory calendar which assigns and removes the role from the reference user only.
    The downside is that it is not scalable for many of the same concepts at the same time, because a dialog user can at one logon time only have one reference user assigned to them.
    Cheers,
    Julius

  • I need to know how to reset a business owned iPad after the employee that set it up has been terminated and will not divulge his password info

    I have an iPad 2 that we need to restore to factory settings.  The employee for which it was issued was terminated and no longer has the username or password that the iPad and Find My iPhone was established with. 
    I have put it into recovery mode 2x...it still prompts for the user name and password of the person that set it up. 
    What do you suggest. 

    Just had an employee terminated most acrimoniously and had an iPhone 5C that was a brick. Apple support can help remove the lock. Better hold onto your original receipt and record the Serial# !  I do not mean the MEID or IMEI but the Serial# found on the original box or Settings>General>About. In my case no receipt or Serial#.  2 hours on the phone between Apple and Verizon and got what was needed. Submitted form and got reply to allow 2-10 business days.
    Here is the form I had to complete and sent to [email protected]..
    ORIGINAL SALES INFORMATION:
    PRODUCT PURCHASE DATE:
    INVOICE/RECEIPT NUMBER:
    PRODUCT SERIAL NUMBER:
    PRODUCT IMEI/MEID:
    PRODUCT DESCRIPTION:
    BUSINESS/INSTITUTION NAME:
    REQUESTOR NAME/TITLE:
    PHONE NUMBER:
    STREET ADDRESS:
    CITY:
    STATE:
    POSTAL CODE:
    EMAIL ADDRESS:
    UNLOCK AUTHORIZATION STATEMENT: I [YOUR NAME] representing
    [BUSINESS/INSTITUTION NAME] authorize Apple, Inc. to unlock the devices listed.
    Best regards,
    The Apple Support Team

  • My iphone5 went out on me, i had recently backed up to itunees prior, how do i extract the photos that were on my iphone5 out of itunes

    my iPhone 5 took a crap on me in October 2014. prior to the iphone5 going down for good I had backed up everything onto iTunes. I have not yet gotten a replacement iPhone. is there any way to extract the photos that I backed up onto iTunes from the iphone5 prior to it breaking down on me

    HI Wolfburger,
    A backup is a compress folder, and we can't access on only Photos in it....
    The resolution can be :
    - Find another iPhone ( with the same software of your iPhone 5 or more recently for the compatibility)
    - Backup this "New Phone" to lost nothing ( you can check your backup in 'Preference pane' of iTunes, Then "Device" ),
    - Restore your iphone's backup on new phone, then if you have a window computer, copy your photos like USB key, or on Mac with iPhotos.
    - Once you collect all your photos, restore new phone's backup on new phone.
    New Phone can be a family's phone or a Friend's phone
    I hope I have helped you, and sorry for my english i'm French

  • I signed up for my apple account while living in Canada, and now I lives in the US. I am looking for a specific app that apparently is only available through the US app store. How can I change my account to the US Apple Store?

    I signed up for my apple account while living in Canada, and now I lives in the US. I am looking for a specific app that apparently is only available through the US app store. How can I change my account to the US Apple Store?

    As long as you have a form of payment (credit or debit card) with a USA source, and with a billing address in the USA, then you just need to change your payment information on your account to that, change your country in the store settings, and you will then be able to shop in the USA store.
    Your AppleID will work in any country's store, as long as your payment source and billing addres are also specific to that country (and you are in that country as well, as there may be IP filters in place to stop use outside of the country).

  • I have all of my music on my dad's apple ID (on my Macbook pro and iphone). I want to start using my own apple ID (the one that my iPhone uses for everything except iTunes store) as my iTunes apple ID - how do I do this without losing my old music?

    I have all of my music on my dad's apple ID (on my Macbook pro and iphone). I want to start using my own apple ID (the one that my iPhone uses for everything except iTunes store) as my iTunes apple ID - how do I do this without losing my old music?

    Authorize your computer with your Dad's AppleID.

  • I have a business and I use iCal for all my appointments, how can I print receipts from my MacBook to a receipt printer? I want my clients to have a receipt of the services that they have paid for, can anyone HELP ME PLEASE?

    I have a business and I use iCal for all my appointments, how can I print receipts from my MacBook to a receipt printer?
    I want my clients to have a receipt of the services that they have paid for, can anyone HELP ME PLEASE?

    Well...I went to the modem (Westell, WireSpeed), found the NAT settings, once again, I'm WAY over my head, I am assuming this is a TCP connection (as opposed to a UDP) and per Lorex my mobile devices will use port 1025.  So I gave it a "global port range" of 1-10 and I indicated that the "base host port" was 80, 1025, & 9000 (ports 1,2,3).  When I selected the 'enable' it asked for a "host devise" my choices are my IPhone, IMac and the IP address for the dvr, so I choose the dvr.  I still cannot connect and canyouseeme still can NOT find these open ports.  This is taking up my whole day! I don't know how people figure this stuff out.

  • When i try to purchase an inapp download it tells me i must purchase the app that this item is for before i can purchase the item.

    when i try to purchase an inapp download it tells me i must purchase the app that this item is for before i can purchase the item. I already own the app. Zen Pinball  im trying to buy add on tables.

    Me to, I spent 50 dollars to buy this and at first it said I didn't have enough money
    Credit, no saying I have to buy the app when I already have it....in getting tired of crap like this. Thinking about no buying apple products anymore.

  • How to burn a video produced in iMovie in iDVD: with gratitude for the advice received I used the "professional quality" setting in iDVD for a video which in iMovie is 1h 20min long.  however this also failled. where did I go wrong, please?

    how to burn a video produced in iMovie in iDVD: with gratitude for the advice received I used the "professional quality" setting in iDVD for a video which in iMovie is 1h 20min long.  however this also failled. where did I go wrong, please?
    the message sked me to alter the quality of the DVD as the content was too large for the quality sellected.
    PLEASE HELP again,
    THANK YOU VERY MUCH
    MIchael

    Check the Advanced ➙ Project Information menu option to make sure the playing time of the entire project, movie plus menu is below the 120 minute limit.
    OT

  • I have just purchased a compilation album but some of the songs haven't downloaded, even though I have paid for them. Why is this and when will i get the songs that I have paid for?

    I have just purchased a compilation album but some of the songs haven't downloaded, even though I have paid for them. Why is this and when will i get the songs that I have paid for?

    Hi there cortleavis90,
    You may be able to download the purchases from the Past Purchases section of the iTunes Store. Take a look at the article below for more information.
    Downloading past purchases from the iTunes Store, App Store, and iBooks Store
    http://support.apple.com/kb/ht2519
    -Griff W.

  • Customizing Slideshows - how do I add an image in the text box that only shows up for a specific ima

    Customizing Slideshows - how do I add an image in the text box that only shows up for a specific image and not in every text box?

    Can you maybe provide a screen shot to further explain your question?
    Julia

  • What is the TV signal setting in photos for?

    What is the TV signal setting in photos for?

    http://store.apple.com/us/product/MC748ZM/A?fnode=5b3abcc454654c56a0e1d775d3d637 6d3cdc0efb627d77fa1dd6745f93866fc31211214e33139bb80e1e43a438fd72ae275bef092dad35 2f4dc5bddea1935be0&fs=m.ipodCompatibility%3Dipodnano

Maybe you are looking for

  • PDF Portfolio does not work with iOS Reader 11.3.2 on iOS 7.1.2

    Well this is upsetting. I created a PDF form with several pages of the same form (it's a travel log). My hoping to use Adobe Reader to complete the form and save back as a week at a time won't work. I created the form using Acrobat Pro 9 from CS5. Do

  • Function Module for Installment Customer Payments

    Hello, I am trying to create a payment due report for our customers. We use installment payment terms for our customers. Therefore, when run at the end of September 2011 this report has to only show the invoice amount, tax and discount that is due as

  • Experience with using BAPI_HRMASTER_SAVE_REPL_MULT from batch input?

    Forum Experts, We have a scenario where we need to update HR Infotype tables in ECC 6.0 using batch data from an HR legacy system as a source.  This will be a daily process, with expected volumes between 1000 and 5000 adds and/or changes.   Does anyo

  • Error message disk image couldnt be opened

    We have a new MacBook pro and need to download firfox but get the error message "the disk image could not be opened" this comes up after we downloaded firefox and tried to open it

  • Macbook pro freezes & after a hard restart i get a grey screen &  horiz bar

    i have a intel 2.3ghz macbook pro that is freezing up... and the only way to unfreeze it is to do a hard restart.... then when it is starting i get a grey screen with a while apple logo and a horizontal progress bar near the bottom of the screen? the