How to search a user just with his login name ?

I want to read some properties of a user n i have only the 'Login name' of that user(the Login name available with me is of the different user and not of the logged in user)
Help me out :_|

It sound like you want to do a basic user search?
Here is how we do it in .NET for our custom user search portlet:
private IPortletContext     portletContext;
protected DataGrid dgResults;
private DataTable resultsTable = null;
protected System.Web.UI.WebControls.Label lblMessage;
protected System.Web.UI.HtmlControls.HtmlTableCell resultsCell;
private void Page_Load(object sender, System.EventArgs e)
portletContext     = PortletContextFactory.CreatePortletContext(Request,Response);
string searchString;
searchString = Request.QueryString["TextName"];
// build up a search request for the matching users
IRemoteSession prcSession          = portletContext.GetRemotePortalSession();
ISearchFactory searchFactory          = prcSession.GetSearchFactory();
IPortalSearchRequest searchRequest     = searchFactory.CreatePortalSearchRequest();
IUserManager userManager = prcSession.GetUserManager();
ObjectClass[] objectTypes = {ObjectClass.User};
               searchRequest.SetObjectTypesToSearch(objectTypes);
if( !searchString.Equals("")){
IFilterClause generalClause          = searchFactory.CreateAndFilterClause();
                    generalClause.AddStatement(PlumtreeField.NAME, Operator.Contains, searchString);
Field[] fieldsToReturn = {
(Field) PortalField.ForID(156), // 156 = Company
(Field) PortalField.ForID(157), // 157 = Address
(Field) PortalField.ForID(163), // 163 = Address2
(Field) PortalField.ForID(162), // 162 = City
(Field) PortalField.ForID(159), // 159 = State
(Field) PortalField.ForID(158), // 158 = Zip Code
(Field) PortalField.ForID(222), // 222 = Location
                    searchRequest.SetFieldsToReturn(fieldsToReturn);
                    searchRequest.SetQuery("*", generalClause);
ISearchResponse searchResponse = searchRequest.Execute();
ISearchResultSet resultSet = searchResponse.GetResultSet();
                    System.Collections.IEnumerator results = resultSet.GetResults();
// build up our data table, we will bind this to the data grid once populated
resultsTable = new DataTable("ResultsTable");
System.Data.DataColumn key = new DataColumn("name", System.Type.GetType("System.String"));
                    resultsTable.Columns.Add(key);
                    resultsTable.Columns.Add("title", System.Type.GetType("System.String"));
                    resultsTable.Columns.Add("phonenumber", System.Type.GetType("System.String"));
                    resultsTable.Columns.Add("address", System.Type.GetType("System.String"));
System.Data.DataColumn[] keycolumn = { key };
resultsTable.PrimaryKey = keycolumn;
while (results.MoveNext())
                         IPortalSearchResult result = (IPortalSearchResult) results.Current;
//string viewProfileLink = "<pt:standard.openerlink pt:objectid='" + result.GetObjectID() + "' " +
                         //     "pt:classid='1' pt:mode='2' target='userProfileResult'>" + result.GetName() + "</pt:standard.openerlink>";
string address = result.GetFieldAsString((Field) PortalField.ForID(157));
string address2 = result.GetFieldAsString((Field) PortalField.ForID(163));
string city = result.GetFieldAsString((Field) PortalField.ForID(162));
string state = result.GetFieldAsString((Field) PortalField.ForID(159));
string zip = result.GetFieldAsString((Field) PortalField.ForID(158));
string location =result.GetFieldAsString((Field) PortalField.ForID(222));
string fullAddress = "";
//added in location
if(location !="" &&location!=null) fullAddress+= location+"<br/>";
if(address != "" && address != null) fullAddress += address + "<br/>";
if(address2 != "" && address2 != null) fullAddress += address2 + "<br/>";
fullAddress += city + " " + state + " " + zip;
string name = "<a href='mailto:" result.GetFieldAsString((Field) PortalField.ForID(258))"'>"+result.GetName()+"</a>";
// add all of the users to our results table
object[] newUserRow = {     //result.GetName(), 
                                        name,
                                        result.GetFieldAsString((Field) PortalField.ForID(153)), // Title
                                        result.GetFieldAsString((Field) PortalField.ForID(152)), // Phone
                                        fullAddress,
                         resultsTable.Rows.Add(newUserRow);
// bind the table to the grid
                    resultsTable.DefaultView.Sort = "name";
dgResults.DataSource = resultsTable.DefaultView;
dgResults.DataBind();
if(resultsTable.Rows.Count < 1)
dgResults.Visible = false;
Label lblNoResults = new Label();
lblNoResults.Text = "The current search '" + Request.QueryString["TextName"] + "' returned 0 results.";
                         resultsCell.Controls.Add(lblNoResults);
resultsCell.Width = "100%";
resultsCell.Align = "center";
                         resultsCell.Style.Add("padding-top","5px");
Edited by geoffgarcia at 08/02/2007 12:59 PM

Similar Messages

  • How to give a user just the acess to its order services/affectations ?

    Hello experts,
    Do you know how to give a user just the acess to its order services/affectations ?
    Thanks for your answer,
    Best regards,
    Alexandre Dupont

    For order services, contracts and activities set object CRM_ORD_OP as I said.
    For Ibase use CRM_IBASE but with this one it is not possible to set authorizations only for own ibases. Maybe there is some other object for ibases.
    Also for business partner there is no such authorization object to shown only own partners. You have 2 options. To play with object B_BUPA_GRP but that means you will have to maintain group for each responsible employee. Or you implement logic in badi BADI_CRM_BP_UIU_AUTHORITY.

  • How to search any user while raising a request in OIM 11g

    Hello,
    In OIM 11g request access screen, How to search any user while trying to raise a request for access ?
    Currently when I login to OIM 11g with my id then I can search only my subordinates not all the users present in OIM.
    I know this comes by default with OIM 9.1.0.2, not sure any configuration changes required for OIM 11g ?
    Pls help me if you have any information on that.
    Thanks!!

    Thanks Rajiv, I did as you told .
    I created new Authorization Policy name called "Test Policy"
    Entity Name: User Management
    Permission Name: Search User
    Data Constraints: All Users
    Assign By Role: ALL USERS
    After that when I login as a end user and click search, It does not serach for any users.
    Could you pls pls let me know if i am missing anything or anything wrong?
    Thansk again.

  • ISupport - register a person as a user associated with his/her Person Party

    Hi,
    iSupport 11.5.10.2
    I have a situation in my organisation where I would like to register an individual as an iSupport User associated with his / her Person Party Number.
    For example: John Doe has been set up in the system as a Person Party, and has an Account Number generated. He has certain Service Contracts and Install Base records associated with the Account Number. John Doe would like to register through the iSupport portal and be associated with the above Party / Account Number and be able to update his IB, check Orders and Invoices.
    Can this be done using any of the existing (seeded) Usertypes, Enrollments etc.?
    Thanks and Regards.

    This cannot be done in 11.5.10.
    But we have this feature in R12.

  • Indesign : how to move a rectangle object with his content ?

    hi
    i develop an indesign extension with flash builder and cs extension builder 2.
    when I move a rectangle object containing an image with the geometricBounds property the image does not move and is not visible anymore ...
    how to move a rectangle object with his content ?
    thanks
    Simon

    Use rectangle.move()

  • Is it possible to search for multiple folders with the same name and...

    Is it possible to search for multiple folders with the same name and then select them all and change the permissions on just those folders .i.e. Search for the budget folders in all client folders and lock them down to just the project managers. Without having to go to each folder and apply the permissions.

    user11919409 wrote:
    Is it possible to create a Clone database with the same name of source db using RMAN ...
    yes
    >
    DB version is 11.2.0.2
    Is it possible to clone a 11.2.0.2 database to 11.2.0.3 home location directly on a new server . If it starts in a upgrade mode , it is ok ....yes
    Handle:     user11919409
    Status Level:     Newbie (10)
    Registered:     Dec 7, 2009
    Total Posts:     102
    Total Questions:     28 (22 unresolved)
    why do you waste time here when you rarely get any answers to your questions?

  • Search if a layersets with a specific name exist and execute a function if it is the case

    Hello,
    How can i write a script that search if a layersets with a specific name exist and execute a function if it is the case?
    Some examples?
    Many thanks.
    Regards.
    Sebastien

    This would check for a LayerSet if a name with DOM code – so it’s fairly slow.
    var check = checkForLayersetNamed(app.activeDocument, false, "thisName");
    alert (check);
    ////// function collect all layers //////
    function checkForLayersetNamed (theParent, theCheck, theName) {
    /* if (!allLayers) {var allLayers = new Array}
      else {};*/
      for (var m = theParent.layers.length - 1; m >= 0;m--) {
      var theLayer = theParent.layers[m];
    // apply the function to layersets;
      if (theLayer.typename == "ArtLayer") {
    // allLayers.push(theLayer)
      else {
      if (theLayer.name == theName) {theCheck = true};
      theCheck = (checkForLayersetNamed(theLayer, theCheck, theName))
    // allLayers.push(theLayer);
      return theCheck
    Below is AM code Paul Riggott posted some time ago in connection with linking Layer Masks.
    Re: Automatically re-link layer masks
    You could add a check for whether the Layer is a LayerSet, but if the name is the sole distinguishing feature this might work as a basis for your operations.
    app.bringToFront();
    main();
    function main(){
    if(!documents.length) return;
    linkLayers();
    function linkLayers(){
       var ref = new ActionReference();
       ref.putEnumerated( charIDToTypeID('Dcmn'), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
       var count = executeActionGet(ref).getInteger(charIDToTypeID('NmbL')) +1;
       var Names=[];
    try{
        activeDocument.backgroundLayer;
    var i = 0; }catch(e){ var i = 1; };
       for(i;i<count;i++){
           if(i == 0) continue;
            ref = new ActionReference();
            ref.putIndex( charIDToTypeID( 'Lyr ' ), i );
            var desc = executeActionGet(ref);
            var layerName = desc.getString(charIDToTypeID( 'Nm  ' ));
            var Id = desc.getInteger(stringIDToTypeID( 'layerID' ));
            if(layerName.match(/^<\/Layer group/) ) continue;
    /* you could insert your operations in an if clause here */

  • How to use Outline Load Utility with local encoding names of dimensions?

    Hi,
    I'd like to load metadata (dimensions members) to Planning classic application via Outline Load Utility.
    Target dimension name has been set in local encoding (cyrillic).
    After execution my batch file I get error that unable to find specified load dimension "????" in target application.
    Batch file has been created to start OutlineLoad in ANSI encoding:
    cd C:\Hyperion\products\Planning\bin
    OutlineLoad /A:testapp /U:admin /M /N /I:C:\Hyperion\TempOtlLoad\otl_tmc_alterna.csv /D:{dimNameInCiryllicEncoding} /L:C:/Hyperion/TempOtlLoad/outlineLoad.log /X:C:/Hyperion/TempOtlLoad/outlineLoad.exc
    TIMEOUT 10
    How to use Outline Load Utility with local encoding names of dimensions?

    Has somebody any idea about my question below ?
    Regards,
    Ed

  • How to access OS User created with "identified externally"

    I am able to
    SQL> create user ops$deskuser identified externally;
    while deskuser is one of my OS user.
    I believe it is a very easy question, however I just do not know how to access this user from sqlplus., please help
    Thanks in advance

    oracle@mini:~> sqlplus system
    SQL*Plus: Release 10.1.0.3.0 - Production on Sun Nov 13 21:11:47 2005
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    Enter password:
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> create user ops$pops identified externally;
    User created.
    SQL> grant connect to pops;
    Grant succeeded.
    SQL> exit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - Production
    With the Partitioning, OLAP and Data Mining options
    oracle@mini:~> su - pops
    \Password:
    Illinois isn't exactly the land that God forgot -- it's more like the
    land He's trying to ignore.
    pops@mini:~> . oraenv
    ORACLE_SID = [pops] ? orcl
    pops@mini:~> sqlplus /
    SQL*Plus: Release 10.1.0.3.0 - Production on Sun Nov 13 21:16:59 2005
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL>

  • How to change Analyzer user password with Administration API?

    Hi,<BR>I would like to change Analyzer user password with Administration API. Can someone post some sample commands to do the task?<BR><BR>I would just like to write an application to change end user's Analyzer password.<BR>As I see I would need to do the following:<BR>1. login with admin userid/password<BR>2. execute some method to change password for required userid. I think the input parameter should be userid (of the user I would like to change password) and new password (the new password for the user).<BR>3. logout<BR><BR>Can someone post some sample code (commands to execute)?<BR><BR>Thanks,<BR>grofaty<BR><BR>My system:<BR>Analyzer Server 7.0.1.<BR>Essbase server 7.1<BR>Windows XP SP2<BR>

    <blockquote>quote:<br><hr><i>Originally posted by: <b>knightrich</b></i><BR>Hello Mr. Jordan.<BR><BR>I would like to exchange some thoughts about "housekeeping" Analyzer reports in preparation for migration from Analyzer 7.0.0.0.01472 to 9.x:<BR><BR>...<BR><BR>Did you solved such a problem or do you have an idea if it could be solved with the Admin API methods?<BR> ...<BR>Migration from 7.00 to 9.x: As we heard last week the "Migration Wizard for Reports" in 9.3 should be able to migrate reports. Do you have experience or more detailed information about that Wizard?<BR><BR>Many thanks in advance<BR><BR>knigthrich<hr></blockquote><BR><BR>knighrich, <BR>I'd like to be more help, but I have no experience with System 9. I did substantial cleanup when we migrated from Analyzer 6 to Analyzer 7.1, and even more cleanup when moving up to 7.2, but our installation is smaller in scale than yours and we didn't need to automate report cleanup.<BR><BR>You might be able to get the ownership information you need through the back door, doing a direct query on the database, but simpler might be an export users, at least from 7.0. (This facility probably doesn't exist in system 9; it was dropped in 7.2 in favor of an undocumented API) The export file is an xml file that could easily be parsed to identify reports that have the administrator as user and then a second pass to delete those with otuer ownership as well. As previously suggested, you might be able to get this by a well crafted SQL query against the repository.<BR><BR>Procedurally, we have both public reports that have the blessing of management and are widely available, owned by a "public owner", and private reports developed by indivdual users and shared or not. Our team maintains the public reports, but not the private reports. We may be asked to make a previously private report public and take over maintenance of it. <BR><BR>I hope that you can find a solution that meets your needs. Certainly a call to customer support to identify a poorly documented feature would be in order.<BR>

  • How to upload html file document with his.files

    i can upload only one file and i can't upload html file with his images or some more pages
    index.html
    chapter1.html
    chapterN.html
    I see this problem so: upload zip file and extract to os(i use linux) and saved link to his index.html.
    IS IT POSSIBLE.
    Thanks.
    Sorry for my english.

    The simplest way to handle this would be to Upload the  page and files to a  remote server space and send your email buddies a link to the site.   Barring that....
    How to Code HTML Emails
    http://www.sitepoint.com/article/code-html-email-newsletters/
    Use  inline CSS styles for fonts and background colors.  Use Tables to hold your  page elements.  Use absolute URLs to images hosted on your web server because attached images may not get through. Give  people who can't see your HTML page in their email client a link to the HTML  page on your web server.
    Download some HTML Email Templates from the links below  to help you get started.
    Mail Chimp
    http://www.mailchimp.com/resources/html_email_templates/
    Constant  Contact
    http://www.constantcontact.com/email-marketing/html-email-templates/index.jsp
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • HOW TO SEARCH FOR  USER EXITV50R0002  IN VL01(delivery)

    HI ALL,
    Can any one of you pls tell me the navigation of how to get the user exit in the screen of vl01 or 03 (outbound delivery).
    But tis is not a customer exit which can be found by " call customer function".

    Hi
    First search the delivery main program  SAPMV50A in that you will find the following User exits
    include mv50afzz.
             include mv50afz1.
             include mv50afz2.
             include mv50afz3.          "Userexit neu zu Release 3.0A
             include mv50afzk.          "Userexit 4.6A (KOMKG/KOMPG)
             include mv50afzl.          "Userexit 4.6A Liefergruppen
                                                                   "n_693000
             include mv50afzp.          "Userexit for pricing screen input
    You can write your code in the relavent above exit and see
    other user exits related to this Delivery transaction are:
    Enhancement
    VMDE0004                                Shipping Interface: Message SDPACK (Packing, Inbound)
    VMDE0003                                Shipping Interface: Message SDPICK (Picking, Inbound)
    VMDE0002                                Shipping Interface: Message PICKSD (Picking, Outbound)
    VMDE0001                                Shipping Interface: Error Handling - Inbound IDoc
    V53W0001                                User exits for creating picking waves
    V53C0002                                W&S: RWE enhancement - shipping material type/time slot
    V53C0001                                Rough workload calculation in time per item
    V50S0001                                User Exits for Delivery Processing
    V50R0004                                Calculation of Stock for POs for Shipping Due Date List
    V50R0002                                Collective processing for delivery creation
    V50R0001                                Collective processing for delivery creation
    V50Q0001                                Delivery Monitor: User Exits for Filling Display Fields
    V50PSTAT                                Delivery: Item Status Calculation
    V02V0004                                User Exit for Staging Area Determination (Item)
    V02V0003                                User exit for gate + matl staging area determination (headr)
    V02V0002                                User exit for storage location determination
    V02V0001                                Sales area determination for stock transport order
    Business Add-in
    DELIVERY_ADDR_SAP                       Address Change in Delivery Processing
    DELIVERY_PUBLISH                        Announcement of delivery data during database update
    See the doc on User exits:
    User exits (Function module exits) are exits developed by SAP. The exit is implementerd as a call to a function module. The code for the function module is written by the developer. You are not writing the code directly in the function module, but in the include that is implemented in the function module.
    The naming standard of function modules for functionmodule exits is:
    EXIT_<program name><3 digit suffix>
    The call to a functionmodule exit is implemented as:
    CALL CUSTOMER.-FUNCTION <3 digit suffix>
    To find a Exit.
    Goto Transaction -- Find The Package
    SMOD >f4>Use the Package here to Find the Exits In the Package.
    Else if you Want to search by Application Area wise ,
    There is one more tab to find the Exits in the Respective Application Area.
    Implementing the Exit-- CMOD Create ProjectsAssgn your Component .
    Now Run ur Transaction to Check if it Triggers.
    Thats it..
    Suppose you need to find out all the user exits related to a tcode.
    1. Execute the Tcode.
    2. Open the SAP program.
    3. Get the Development Class.
    4. Execute Tcode SE84.
    5. Open the Node 'Envir. -> Exit Techniques -> 'Customer Exits -> Enhancements'
    6. Enter the Development class and execute.
    Check out this thread..
    The specified item was not found.
    1. Type the transaction : system->status-> <PROG. NAME>
    2 open SE37 , type EXIT<PROG NAME> and press F4 to get the list of function exits available.
    3. Open CMOD utilities->SAP enhancements
    EDIT->All selections
    4.type the function module name obtained in step 2, in fields 'component name' in 'additional selections' block. and execute.
    5. The displayed list contains the enhancements names for the transaction You were looking for.
    6. Create a project in CMOD and the code in default include->activate.
    http://www.erpgenie.com/sap/abap/code/abap26.htm
    which gives the list of exits for a tcode
    http://help.sap.com/saphelp_nw04/helpdata/en/bf/ec079f5db911d295ae0000e82de14a/frameset.htm
    For information on Exits, check these links
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sapgenie.com/abap/code/abap26.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
    http://www.easymarketplace.de/userexit.php
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sappoint.com/abap/userexit.pdfUser-Exit
    http://www.planetsap.com/userexit_main_page.htm
    User-Exits
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sap-img.com/ab038.htm
    http://www.planetsap.com/userexit_main_page.htm
    http://www.sap-basis-abap.com/sapab013.htm
    http://sap.ittoolbox.com/documents/popular-q-and-a/user-exits-for-the-transaction-code-migo-3283
    These links will help you to learn more on user exits.
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/frameset.htm
    http://www.planetsap.com/userexit_main_page.htm
    http://www.allsaplinks.com/user_exit.html
    www.sap-img.com/abap/what-is-user-exits.htm
    Also please check these threads for more details about user exits.
    Re: Screen exit
    user exit and customer exit
    user exit
    1. Document on UserExits in FI/CO
    http://www.ficoexpertonline.com/downloads/User%20ExitsWPedit.doc
    <b>2. Finding User Exits...</b>
    <b>http://sap.ionelburlacu.ro/abap/sap2/Other_Useful_Tips.html#Finding_User_Exits</b>
    3. List of all User Exits...
    http://www.planetsap.com/userexit_main_page.htm
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • How to search/filter HR documents with TREX

    Hi,
    We have installed TREX 7.0
    I need to use it with HR docs
    We must find for exemple :
    how to receive the list of HR contracts signed since last week ( possibility to filter via a document type ? )
    how to have all the documents linked to a personnal ID
    how to search and filter text in scanned HR documents stored in a content server
    I did not find documentation telling how to manage HR documents with TREX
    I have only tried SES but it is not useful for what I need.
    Could you please tell me if TREX can be used for this task ? Can you give me some link for HR document management on TREX ?
    Best regards
    Franck

    Hi Frank,
    Yes, Trex can be used for this task. I have noe idea particularly about  HR document management on TREX .
    But I can help you out for using the Trex for classification, Indexing etc based on your requirements.
    Please reply with issues.
    Best Regards,
    Atul

  • How Do I Create User Account with "limited admin rights"?

    Hello;
    I would like to give a handful of users the ability to login to the DCC and enable them to add/delete/modify users and or hosts only, I.e. People and/or hosts.
    Is there anyway to:
    1.  Make a user with this admin capability?
    2.  Segregate the containers they are able to modify?
    Thanks to all in advance.

    BobM53, That would be needed regardless of what front end my users log in with, in my case I was looking for them to access the DIT via the DSCC/DCC, which is not possible.  Regardless, thank you for your reply, it is reassuring to know I am headed in the right direction.
    I am now looking towards installing something else like Apache Directory Studio, or some other GUI for users to manage the directory. 
    I will most likely create one or more ACI's to build groups, adding members to those groups as needed; each group being allowed to perform functions such as create users, lockout users, add/modify hosts, etc.
    I will most likely follow the steps outlined in:
    Directory Server Groups, Roles, and CoS - 11g Release 1 (11.1.1.7.0)
    Slightly OT, does anyone have a suitable and similar proven method to "lockdown" root accounts, and who has root access?
    Thank you

  • How to allow a user to create his workspace in java(swings)

    hello guys ..
    i have to develop an interface (GUI) where i allow the user to create his own workspace , could anybody tell me what is the code we need. are there any specific inbuilt functions and methods..
    please help
    Imran

    public class Workspaceextends javax.swing.JPanelimplements org.jivesoftware.smack.PacketListener
    The inner Container for Spark. The Workspace is the container for all plugins into the Spark install. Plugins would use this for the following:
    Add own tab to the main tabbed pane. ex.
    Workspace workspace = SparkManager.getWorkspace(); JButton button = new JButton("HELLO SPARK USERS"); workspace.getWorkspacePane().addTab("MyPlugin", button);
    Retrieve the ContactList.

Maybe you are looking for