Best way to find the Customer of the logged in user

Background: We're a tool provider. When our users grant the tool oauth access to their accounts, we need to get the customer ID and name as well as a list of accounts under the customer.
What is not clear to us is how best to get the Customer name. It seems we need to make 2 requests; the first one is to use
GetUserRequest to get the logged in user details, and then use the username as a filter with a
SearchCustomersRequest call.
The GetUserRequest returns the customer ID but not the name.  Hence, the need to use SearchCustomersRequest.
We can't use GetCustomersInfoRequest because it requires us to provide a
CustomerNameFilter which we obviously don't have.
Is the above correct? Have we missed something anywhere?

Yes you will need at least 2 calls e.g. GetUser -> SearchCustomers or
GetUser -> SearchAccounts -> GetCustomer. Do any agencies use your tool? Keep in mind that an agency user cannot access the full client Customer details, i.e. in the same way that GetCustomer(clientCustomerId) will return a code 1001
permissions error, SearchCustomers won't return the client's Customer object. This is by design since linking a client account to an agency only grants account level access - not customer level access. To ensure you get a full list of all accounts that a user
can access (whether or not agency), please consider the GetUser -> SearchAccounts -> GetCustomer call pattern. For a related code example, see
Search Customers by User in C#. 
I hope this helps! Please reach out with any further related questions or concerns. 

Similar Messages

  • What is the best way to find a file on the servers disk without using web.xml?

              What is the best way to find a file on the servers disk without using web.xml?
              I want to find a configuration file not contained within the war file I have
              created. Is there a way to pass information into the ServletContext with out
              rebuilding the ear or war files? Tomcat 4.0 can do this in its server configuration
              files. Does BEA have the equivalent?
              Regards,
              Eric
              

    You can specify the path to the file as a system property
              eg
              java -Dconfig.file.location=./mydirecotry/myfile.txt com.test.MyApp
              "Eric White" <[email protected]> wrote in message
              news:[email protected]..
              >
              > What is the best way to find a file on the servers disk without using
              web.xml?
              > I want to find a configuration file not contained within the war file I
              have
              > created. Is there a way to pass information into the ServletContext with
              out
              > rebuilding the ear or war files? Tomcat 4.0 can do this in its server
              configuration
              > files. Does BEA have the equivalent?
              >
              > Regards,
              > Eric
              

  • I am a Creative Cloud customer . . . what is the best way to contact Adobe Customer Support???

    I am a paying Creative Cloud customer . . . that being said . . . what is the best way to contact Adobe Customer Support???

    Hi miami730,
    Please refer the link: http://helpx.adobe.com/in/contact.html to contact customer support.
    Regards,
    Romit Sinha

  • What is the best way to zero a 'custom voltage with excitation' sensor from the front panel?

    What is the best way to zero a 'custom voltage with excitation' sensor from the front panel?
    Thanks for any help

    Hi Donavan,
    There are two options for zeroing with the NI-9237.  You can perform offset nulling and shunt calibration with a strain task, or if you use custom excitation you can use software compensation.
    See the Bridge Balancing, Offset Nulling section in  the Load, Force, and Torque Measurements tutorial. Take a measurement before the strain is applied and subtract this from all subsequent measurements.  See the above tutorial to consider the tradeoff in accuracy between these two options.
    Hope this helps,
    Jennifer O.
    Applications Engineer
    National Instruments

  • There are way too many photos on my internal hard drive. I have older libraries, and newer libraires in iPhoto and Aperture 2.  What is the best way to find and reduce the number of duplicate photos/libraries  before upgrading to Aperture 3?

    There are way too many photos on my internal hard drive. I have older libraries, and newer libraires in iPhoto and Aperture 2.  What is the best way to find and reduce the number of duplicate photos/libraries  before upgrading to Aperture 3?

    Sharon-
    Good idea.
    Back up first.
    I would probably wait for the merge function of the latest version before merging. Be sure to verify every merge.
    Merge Libraries, then from within Aperture move images to referenced on external hard drives.
    HTH
    -Allen

  • What is the best way to find the size of files?

    What is the best way to find the size of my files?

    Select a file or folder in the Finder and choose Get Info from the File menu.
    (125056)

  • Best way to find the source of my iMac's constant crashing

    My iMac is crashing 1-2 times a day. The crashes are strange in that I can still move my mouse cursor, but everything on screen is frozen. They tend to happen while using Photoshop or Safari, but during menial tasks (resizing a 3MB photo or opening a new tab), and they happen in other programs as well…even just using the Finder. The crashes have happened over the last six months but only recently became for frequent – used to be a weekly occurence, now it's happening every day.
    I haven't installed anything new that might be the culprit, except for GoToMyPC which I've since uninstalled. What is the best way to find out what's causing these crashes?
    I've been toying with the idea of starting with a clean slate – wiping out my drive and reinstalling Mountain Lion – to get my Mac back to factory condition. What's the best way to do this? I don't want to go off of a backup because I don't want to bring over any bad processes or programs. So what's the best way to bring over all my files? Should I just copy over the particular files from the Home folder? Any chance I would be bringing over corrupted files?

    Reinstalling Lion/Mountain Lion Without Erasing the Drive
    Boot to the Recovery HD: Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the main menu. Repair the Hard Drive and Permissions as follows.
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu.
    Reinstall Lion/Mountain Lion: Select Reinstall Lion/Mountain Lion and click on the Continue button.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless.
    To do an Erase and Install of Mountain Lion:
    Install or Reinstall Lion/Mountain Lion from Scratch
    Be sure you backup your files to an external drive or second internal drive because the following procedure will remove everything from the hard drive.
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Erase the hard drive:
      1. Select Disk Utility from the main menu and click on the Continue button.
      2. After DU loads select your startup volume (usually Macintosh HD) from the
          left side list. Click on the Erase tab in the DU main window.
      3. Set the format type to Mac OS Extended (Journaled.) Optionally, click on
            the Security button and set the Zero Data option to one-pass. Click on
          the Erase button and wait until the process has completed.
      4. Quit DU and return to the main menu.
    Reinstall Lion: Select Reinstall Lion/Mountain Lion and click on the Install button.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible
                because it is three times faster than wireless.

  • What is the best way to manage multiple devices with one iMac - different users with seperate itunes accounts or one mac user with different itune logons and libraries?

    Hello
    I have just purchased an imac which I am very happy with.  In our household we also have two iphones (one mine and one husbands) and one ipod (my sons). We all have individual itunes accounts set up on our previous computer (not a mac). We have sepereate apps and music, although there may be the odd occasion where we would like to share a song (if this is possible) across devices.
    I am just wondering the best way to manage these devices using the new imac.  Should I create individual accounts to logon to the imac, then from within these launch our own itunes accounts and sync our devices with these.  Or should I be using one version of itunes, logging on to this with our different itunes usernames and storing things in libraries.
    Any help would be greatly appreciated. 
    Thanks

    I am presuming that we cannot share downloaded apps and music between accounts because of the copyright issue,
    Though I'm no copyright lawyer, as long as it's within a household, you can share content among users. Such sharing is, absent specific language preventing it not present in the iTunes Store terms of use, generally considered to be "personal use". So you can share apps and music amongst your users on your computer and with their devices. You just can't give any of that content to friends or relatives who don't live with you.
    What I am not clear on, it making sure that this appears in each itunes account - is it easy to find the file storage folders that match the itunes accounts and what would these be?
    The iTunes library and files are by default in a user's Home/Music folder. But you don't have to find the folder; in fact putting a file into the folder yourself won't add the file to iTunes. Just drag the file into the iTunes window. iTunes will copy it to the correct location.
    Regards.

  • What is the best way to sync multiple collections of contacts among multiple users?

    (I originally submitted this question under the "Mac OS X Technologies" section, but got no response. I'm submitting a duplicate here because this is where all the smart folks are! My apologies that my question is only partially related to OS X Server . . . )
    What is the best way to sync multiple collections of contacts among multiple users on iOS and OS X?
    For example, suppose I have three collections of contacts: Bob's, Sally's, and Common. I want Bob to be able to access and sync Bob's contacts and Common contacts, and Sally to access and sync Sally's contacts and Common contacts. Bob and Sally never need to access or sync each other's contacts. Bob and Sally would both sync and share contacts in Common.
    How would I best implement this? It's my understanding I have three options for managing contacts across iOS and OS X: 1. iCloud accounts, 2. Install OS X server, or 3. Install and manage Darwin CardDAV directly. Which method would best support what I wish to do?
    I am a seasoned Unix geek well versed in the terminal, so I am prepared to get my hands dirty as much as necessary to achieve what I want. Also, it is sufficient if syncing takes place over WiFi on the local network, in fact, that is desirable versus syncing over the cloud.

    Thanks for your reply Nick101. I see my example was oversimplified. When I say "multiple groups of contacts over multiple users" I'm really referring to N groups of contacts over N users.
    So I need to add Fred, who can access and sync Bob's contacts, Sally's contacts, and Common contacts, as well as Fred's contacts. Can I do it with OS X server?
    You mention you keep your and your partner's contacts administered locally. What keeps you from administering them through OS X server as well?
    I am guessing this can all somehow be accomplished with multiple contact accounts, but I can't find any information on the web explicitly describing this.

  • What is the best way to make video and audio the same lengths for posting on Web?

    YouTube recommends doing this to avoid sync problems. Maybe it will also make my videos run more smoothly. I'm talking here about random pauses I see in my movies on YouTube, not the uniform stuttering problem which I pretty much solved by redoing the movie at 30 fps instead of 24 fps. (Original is 18 fps Super 8 movie film.)
    Anyway, there is no sound during my titles. The soundtrack starts about 17 seconds in, and ends when the ending titles begin. So what's the best way to add silent audio? The best I can figure is to take some existing sound, put it in where the titles are, and turn the volume down to zero. Seems real workaround-ish, so to speak, to me. It seems to work. I even cranked it up on headphones to make sure there was no residual noice. But I'm curious if there's a better way? No biggie if not.
    Thanks.         

    I should have included the following:
    1.) Why can't I make a silent project in GarageBand? I have to instead find a project with a long enough song, make an "iLife preview" of it (see (2) below), copy it from the iMovie Music and Sound Effects browser to the end of the movie, and then open the audio panel and turn the volume to zero. And all this so that video websites don't get confused by a soundtrack that starts in mid-movie.
    2.) Why do I have to "render" them by the following process: Double-click a song in the iMovie Music and Sound Effects browser. You get a dialog box saying "The project "The Great Race" cannot be used because it was not prepared with an iLife preview. Would you like to open "The Great Race" in GB so you can save it with an iLife preview?" What I don't understand is why this new thing was introduced and why I have to do it via iMovie.

  • HT3819 I have 2 Ipod touch's, one a 64gb and one an 8gb.  Whats the best way to use them both on the same itunes account?

    I have 2 Ipod touch's, one a 64gb and one an 8gb.  Whats the best way to use them both on the same itunes account?

    Click here for options.
    (64410)

  • What is the best way to protect my macbook on the internet

    what is the best way to protect my macbook on the internet, using mobile broadband?

    against what ? malware ?
    on Macs, all that's needed is common sense.
    Mac Virus/Malware Info

  • What is the best way to connect my ipad to the high-speed Internet connection in a hotel room

    what is the best way to connect my ipad to the high speed inernet connection in a hotel room

    every connection is a bit different. Generally, connect to the wifi, then you may need to open Safari, and may even need to try to get to one of your bookmarked pages to trigger the 'agree to our terms' page to come up.
    As to it kicking you off every so often, there are sometimes glitches with the wifi on iPads, you can also be subject to any programming the hotel has. Like I've noticed various places that only allow you to log on for a period of time before having to relogin.
    most hotels have 1-800 numbers, so you can always try calling that to see if their tech support has any tips for the frequent disconnection issue.

  • What is the best way to connect my guitar to the usb port on my IMac

    This is for use with Logic Pro X
    what is the best way to connect my guitar to the usb port on my
    I-Mac

    As has been said really, the less you pay the less quality, and flexibility you'll have on your sound.
    For example, you could run on a 'Rocksmith Real Tone Cable' if you just wanted a cheap way of getting your guitar into the computer for some fun.  Probably cost you $30 (I live in UK so can't be sure).  If you're starting out then this could be considered the best option for dipping your toe in the water without spending too much.
    You won't get a really nasty sound out of that if you can process it yourself in Logic afterwards to clean up, but it won't be great either.  I imagine it could get quite noisy so you'd need to get heavily gating your guitar sound, if you're playing something clean that's not ideal.
    Longterm, you're far better getting a decent audio interface, as you need something to play sound back through, if you have different input sources you usually have to create an aggregrate device on osx to use multple sources at once esp if you're using the built in audio chip on your mac to listen. 
    All this can add latency and possibly sync issues (i.e. drum tracks not in time with audio etc.), although generally it's not too bad, but it's something worth knowing if you want to do things on the cheap without buying a dedicated interface.
    What kind of money did you want to spend? Are you thinking super duper cheap, and then see how it goes and maybe spend more in future if you enjoy it?  Personally i would say £100-150 would get your something good to start with, like that Presonus audiobox, there's a lot of options like that available.
    My local music shop always push the alesis io2 on new users, gotta say i'm not that overly impressed with it.  Line 6 stuff will be good however, but limiting.  Although i beleive you get their software for free with it?

  • What is the best way to merge a file content into log file

    What is the best way to merge a file content into log file.
    In worst case, I will read the file line by line as string, then use
    logger.info(lineString)to output to log file.
    However, is there better way to do this?
    The eventual log file will be something like:
    log message 1
    log message 2
    content from file line 1
    content from file line 2
    content from file line 3
    log message 3
    log message 4Thanks

    John618 wrote:
    Thank you and let me explain:
    1. What do you mean by better?
    I would like to see better performance. read line by line and log each line as string can be slow. Did you measure this and determine that it is actually a problem for your application? Or are you guessing?
    Regardless of what you do you are still going to need to read the file.
    >
    2.The only better way I can think of is not having to do it, but I assume you have a very good reason to want to do this.
    Yes, I have to do it beacuse the requirement is to have that file content be part of logging.
    Any idea?How is it supposed to be part of it? For example which of the following is better?
            File AAA - contents
                       First Line
                       Second Line XXX
            Log 1
                    2009-03-27 DEBUG: Random preceding line
                    2009-03-27 DEBUG: First Line
                    2009-03-27 DEBUG: Second Line XXX
                    2009-03-27 DEBUG: Random following line
            Log 2
                    2009-03-27 DEBUG: Random preceding line
                    2009-03-27 DEBUG: ----- File: AAA -------------
                    First Line
                    Second Line XXX
                    2009-03-27 DEBUG: Random following lineBoth of the above have some advantages and disadvantages.
    The first in a mult-threaded app can end up with intermittent log entries in between lines, so having log lines with thread ids becomes important.
    The first can be created by reading one line at a time and posting one at a time.
    The second can be created by reading the entire file as a single string and then posting using a single log statement.

  • What is the best way to manage multiple ipods using the same itunes?

    Hi Everyone
    i am trying to manage three different ipods through the one Itunes, all with very different tastes, not sure if I am doing it the best or easiest way so does anybody have a simple solution on what you're supposed to do, to keep it all simple!
    Cheers
    Liv

    If you have created a new Windows user account you need to log out and then log back in with your original user name. By default each Windows profile will have an independent iTunes library.
    If instead you managed to create a new library within the same profile. click the icon to start iTunes and immediately press and hold down the shift key, keep holding until asked to create or choose a library. Click Choose and navigte back to your original which should be at <User's Music>\iTunes.
    Your question as posed was:
    What is the best way to manage multiple iPods using the same iTunes {library}?
    in which case Selected Playlists is probably the best approach. Simply create a playlist for each device, Alice's iPod, Bob's iPhone etc. and sync the device with the appropriate list.
    tt2

Maybe you are looking for

  • ABAP Proxy call gets stuck in qRFC

    When I execute my program to trigger an ABAP proxy, the program executes successfully, but then no message appears in the Integration Engine. I have discovered that every time the program is executed, it ends up with an entry in the qRFC of the sendi

  • Flex 3 and LCDS Integration

    Hello, I am trying to build an application which needs remoting. I was trying to implement this using Flex 3 and LCDS. I have some experience with flex, but I am pretty new to LCDS. Can any one please direct me to a good tutorial on getting a web app

  • Unable to see Planning application under calculation Manager

    Hello All, I created a Planning application in workspace and choose the Sahred Service Project as APS server.Now I want to create business rules.For that when I m lunching Calculation Manager from workspace, I m not able to see the appliaction that I

  • Which cables are needed to connect macbook 13" to HDTV

    Hi, was wondering which cables i needed to connect my 13" aluminium macbook to a samsung HDTV. There's so many on the apple store, not entirely sure what I need. Any help would be appreciated. thanks

  • "Lock Computer" under Windows XP professional

    hi, My Swing app needs to be notified when a user "Locks" the computer using CTRL+ALT+DEL combination and then clicking the "Lock Computer" button. I need to know even if the computer gets automatically locked via the screen saver. Can I do this at a