Fetch a resource attribute using Last name

Hi All,
I need to fetch a resource attribute 'employeeID' from AD, all I know is only Last Name (I don't know the accountId). How can I acheive this?
Is it possible through EXPRESS or do I need to write a java program.
Please share your ideas.
Thanks in advance

It is possible (with XPRESS) but the search criteria of Last Name will result in lots of erroneous matches. If at all possible, find additional or alternative search criteria to narrow down the field.
Here's some example code for retrieving results from an Active Directory resource. It was written to be used in the Form context (changes would be required if you were executing from a Workflow context).
              <defvar name='results'>
                <invoke name='getResourceObjects' class='com.waveset.ui.FormUtil'>
                  <ref>:display.session</ref>
                  <s>person</s>
                  <s>Active Directory Resource Adapter</s>
                  <map>
                    <s>searchContext</s>
                    <ref>baseDN</ref>
                    <s>searchAttrsToGet</s>
                    <List>
                      <String>cn</String>
                    </List>
                    <s>searchFilter</s>
                    <concat>
                      <s>(sn=</s>
                      <ref>lastnameValue</ref>
                      <s>)</s>
                    </concat>
                    <s>searchScope</s>
                    <s>oneLevel</s>
                  </map>
                </invoke>
              </defvar>baseDN specifies where in the AD tree to start searching (e.g. "cn=Users,dc=Acme,dc=com")
lastnameValue is the lastname you're searching on (e.g. "Smith")
results will be a List of the cn attributes that came back from the search (specified in the List under searchAttrsToGet). You need to put logic around the results to handle the List appropriately.
Use standard LDAP-style search filters in the searchFilter section if you need to add additional qualifiers.
Jason

Similar Messages

  • How to search users in Outlook Using Last Name and First Name

    During recent times we change the naming convention in AD, FirstName , LastName
    We can search users using More Columns but I would like to know alternate method to search users. The search result should sort results by last name as query
    Regards Chen V [MCTS SharePoint 2010]

    Hi Chen,
    Based on my knowledge, there is no related method to enforce all users using More Columns as the default search option in Outlook Address Book. We can just change the search option for individual Outlook user by remembering the last search using as I mentioned
    above.
    Sorry for any inconvenience and thanks for your understanding.
    Regards,
    Winnie Liang
    TechNet Community Support

  • Standard webdnpro component for employee search using using last Name

    Hi All,
    Can anybody please let me know Is there any SAP standard webdynpro component for the last Name of the employee.
    My Requirment is i have field called Last Name i will give may lastname and serach then it should give the employee no and employee name..
    Thanks
    taragini

    Tarangini,
    you can check this HRASR00_PROFILES_SHOW
    Thanks
    Bala Duvvuri

  • Fetch a multivalued attribute using Data Bean

    Hello,
    I am trying to fetch employee user related information using Data Bean.
    Here employee has position as a multivalued attribute.
    Currently when I fetch record for an employee I get information only for one position.
    I want to fetch the whole list of position's assigned to this employee.
    Can any one please help me on how to achieve this?
    Thanks,
    Harshal

    Please read the Bookshelf on GetMVGBusComp.
    http://docs.oracle.com/cd/E14004_01/books/OIRef/OIRef_Interfaces_Reference11.html#wp1185173

  • Need to search contacts by last name

    I need to know how I can only search the contacts by last name. As it is right now, it search last name and first name. I only need the last name.
    Any ideas would be greatly appreciated.
    Post relates to: Treo 650 (Sprint)

    I am not sure I understand you? Do you mean when using the search function (Option key and magnifier) or when using the lookup function in the Phone, SMS and MMS applications?
    In the case of the Lookup function, I described how to use last name only in that context.
    In the case of Find, you cannot limit the field to which the search applies. You can only control the order of application databases to seach. It will search the database of the currently open application first. If you need a more advanced Find, I recommend www.intelligentfind.com.

  • TS4002 When I got my phone the man at the att store set up my account but he put my email address wrong he spelled my last name on my id password wrong on it so I cannot use my iCloud account

    When I got my upgrade I got a iPhone 4 and the man at the att store helped me set up my phone and when he done my iCloud account he put my email ID. wrong because he spelled my last name wrong I did not notice this until I got home I went back to the att store and they tried to fix it but couldn't 1 they even cleared everything off my phone and set hpnthe apple account with the correct one but it wouldnt fix my icloud either please help I don't  know what to do.

    Welcome to the Apple Community.
    In order to change your Apple ID or password for your iCloud account on your iOS device, you need to delete the account from your iOS device first, then add it back using your updated details. (Settings > iCloud, scroll down and hit "Delete Account")

  • I use iCloud to store my contacts but in Outlook it only sorts by first name. Although in iCloud it can be set to sort by last name, I cannot get it to do that in Outlook.

    I use iCloud to store my contacts, but in Outlook it only sorts by first name. Although in iCloud it can be set to sort by last name, I cannot get it to do that in Outlook. I have thousands of contacts and cannot sort though all the first names to find one.How do I get it to sort by last name in Outlook?

    By reading this:
    http://office.microsoft.com/en-us/outlook-help/display-the-contacts-list-in-last name-firstname-format-HP001034286.aspx

  • What's the use for "name" attribute?

    Almost every object has a "name" attribute and "display name" attribute, e.g. page, tab, template.
    What is the exact use of the name attribute. For my understanding, one of its use to is contruct a URL for the object. For example, when I want to add one item to a page, the shows me the path to the page is:
    PAGE / HELLO_PAGE_GROUP / HELLO_PAGE / TAB37465 / TAB37469 /
    TAB37465 is the name of the tab attribute. I realized this and went to change the name of the tab to a more meaningful value. However, when I try to add the item, the page Path did not change. Is this a oracle internal bug?
    I have similar problem with navigation page. I published a navigation page as portlet. I changed the name of the navigation page and use the name as the portlet name, the new name of the portlet can not be reflected in the portlet repository.

    Jerry,
    1. I tried to add an item to the page within the tab. On the "add item" page, it shows me the path to the current page. Ok, Let's forget about "item", and just talk about the path to a tabbed page. The path/URL never changes, even after I change the tab "name" attribute.
    2. I am talking about the name of the portlet within portlet repository. Let's see within page group A, I created navigation page with name of "test". I published the page as a portlet. In the portlet repository, I can see a new portlet "test" under "new/A". I changed navigation page name from "test" to be "B", however, the portlet name never changed in the portlet repository. It's always "test".

  • How doI change my last name on my bill and profile? Using maiden name, need to update to married name

    How doI change my last name on my bill and profile? Using maiden name, need to update to married name

    Yea its a good thing to update because 95% of the Time a Rep. may ask for the Primary owner of the lines and if your not that person you can't hardly do squat with it. Case in point with my With our Lines my Mom was the Primary owner and i couldn't do Anything with out them wanting to talk to her first. Getting a Phone, Making Changes, Check statuses, Heck there was one time i remember i couldn't even pay the bill not exaggerating there it was basically out of my Hands my Mom got tired of this and she changed it.. Now that i'm considered as second Owner and i can do as only my mom could there are a still a Few rare occasions that a Rep will ask for her on but for the Most of it i have free Range with the Account..  b33

  • Why can't I set up an apple ID alternate email using my first name and last name?

    I am trying to set up an alternate address to my appleID using my first name and last name.  It keeps saying it is "rejected" but it gives me no reason.  I thought maybe someone was squatting on it, but when I try to send a note to it, it says that it isn't a valid address.  Does Apple prevent you from using an iCloud device with your name?  Seems odd since it allows other combinations of my name.

    Hello amg1957,
    Thanks for using Apple Support Communities.
    If you're trying to add an alternate email address to your Apple ID account, the email needs to be an existing valid email address.  To configure an alternate email address with a valid existing email, please follow the directions below.
    Alternate email address
    You can add one or more alternate email addresses for use with Apple services such as Game Center, FaceTime, Find My Friends, iMessage, and OS X notifications.
    Go to My Apple ID (appleid.apple.com).
    Select “Manage your Apple ID” and sign in.
    Add an alternate address:
    Select Add Email Address, then enter your alternate address. Apple will send a verification email to that address. Didn't receive the email?
    Follow the instructions in the email to verify the address.
    Edit an alternate address:
    Select Edit next to the address, then enter the new address. Apple will send a verification email to that address. Didn't receive the email?
    Follow the instructions in the email to verify the address.
    Delete an alternate address: Select Delete next to the address.
    Manage your Apple ID primary, rescue, alternate, and notification email addresses - Apple Support
    Take care,
    Alex H.

  • How can I display the first and last name using a paramater as employee ID?

    Hi SAP,
    I have a parameter that is called {? Employee ID}.   What I want to do is display the first and last name based on the employee ID value entered in {? Employee ID} in the page header of the report.  Right now, when I put the following formula in the page header only some pages get the right result while other pages dont....
    if table.employeeid = {? Employee ID} then
    table.firstname" "table.lastname
    It appears as though if the first record in the details section on the beginning of each page happens to be the employee under {? Employee ID} then it prints it correctly, if it isn't I get a null value in the page header.
    Anyone have any ideas?
    Z

    Hi Try this,
    Whileprintingrecords;
    if ={?EmpID} then
    Also check the option "Default values for null" in the formula editor.
    Regards,
    Vinay

  • How can I get the address book to sort by "Last" name (using v 31.3.0).

    After a computer crash, I had to load Thunderbird (v31.3.0) back into my machine running Windows 8.1, and I successfully imported my address book back up file into Thunderbird (v31.3.0).
    My problem is that I don't see an option to sort the address book by "Last" name, which was available with the version of Thunderbird I had before the crash.
    How can I get the address book to sort by "Last" name?

    In 'Address Book'
    Select address book
    'View' > 'Show name as' > 'Last/First'
    The you can sort by Name.
    Either click on 'Name' column header to change sort order,
    If reversed, then click on 'Name' column header again to reverse the order.
    Or
    'View' > 'Sort By' > choose 'Name' and 'Ascending'

  • HR DB table to find out PERNER using first or last name of the person

    Hi all,
    just wanted to know from which HR DB table we can find the Personal number by passing First name or last name of the person.
    Thanks in advance,
    Vithal

    Hiiii,
    Go to Se12
    Table name :- pa0002
    fields:-
    Last Name :- NACHN
    First Name :- Vorna
    Just enter values for these two fields to get Personal Number.
    Regards
    Sachin Dhingra

  • HT201401 HI ive forgotten my apple id and password, and also the name and last name i used to set up my iphone 4s what do i do?

    my iphone 4s wont turn back on after the battery died, have tried all the steps, still not working. contacted my network provider they said to send it in but before that turn off find my iphone. I am unable to do so as ive forgotten my apple id and password, i have followed the steps and im stuck as i do not know what name and last name i put when registering with icloud as i didnt want to give out such information at the time,(as in i made up the name n last name).
    Can anyone help me???

    That my friend is why you don 't make up a lie; you get yourself stuck in this kind of circle.
    First; how do you forget the apple id and password, that apple id is most likely an > EMAIL < address that you /PERSONALLY/ put into the device to sign up for the service. Once you remember your own email; you need to go to https://iforgot.apple.com/password/verify/appleid for further assistance on resetting your password
    You don't need the first and last name; it just makes it a lot harder to locate your account if you REALLY can't remember
    If you cannot find any infomation then you sir are SOL;

  • User View not showing the assigned resources attributes in idm 7.0

    Hi,
    In a Remediation Form I am using a text field
    <Field name='user.accounts[SimAD].group'>
    <Display class='Text'>
    <Property name='title' value='Title'/>
    </Display>
    </Field>
    but here i am not able to get the value of group. when i dumps the user view its shows only Lighthouse resource under accounts attribute.
    <Attribute name='accounts'>
    <List>
    <Object name='Lighthouse'>
    <Attribute name='firstname' value='Magnet'/>
    <Attribute name='fullname' value='Magnet Mangentta'/>
    <Attribute name='idmManager'/>
    <Attribute name='lastname' value='Mangentta'/>
    </Object>
    </List>
    </Attribute>
    while the user has three resources.
    when I use the getView method in form using following code
    <invoke name='getView'>
    <ref>:display.session</ref>
    <concat><s>User:</s><ref>user.waveset.accountId</ref></concat>
    <map>
    <s>authorized</s>
    <s>true</s>
    <s>subject</s>
    <s>configurator</s>
    </map>
    </invoke>
    this time I m able to get the value resource attribute.
    please give the solution how can I get the editable user view in Remediation Form so that I can change the attribute of resource.
    Thanks,
    Amit

    i got the solution there was one attribute on workflow
    <Argument name='NoFetch' value='true'/>
    remove this to false it will fetch all the resource attributes

Maybe you are looking for

  • Persistent but Inconsistent iTunes Runtime Error Message...

    A while ago, I started getting a runtime error message when I'd open iTunes. "Microsoft Visual C++ Runtime Library Runtime Error! Program: C:\Program Files\iTunes\iTunes.exe This application has requested the Runtime to terminate in an unusual way."

  • IIS7-Internet Explorer cannot display website

    I hosted my website on my local webserver (Window Server 2008), and when I run it on iE8 &  iE11 the website doesn't look good, my navigation bar brakes, and my image slider breaks too. It is not a browser issue because, I have hosted the same websit

  • Alternative unit of Measure for variant material

    Dear All, Here is an interesting scenario, There is a naterial Billet with two variant characteristics length and size. and base unit of measure is TON. Now alternative unit of measure is PCS.  How can define the conversion factor on the basis of the

  • String to image field..

    Hello all,      shortly,   this is what i need:      does anyone have an idea how to show string in an image field????      now for the long story..:      I have a table, that all cells are image fields.      I send to some of them a xstring of a pic

  • Why can't I print an Email from the open Apple Mail app?

    Hi, even though my printer works as usual with other applicationns, I am not able to print an email when I am in Mail. Who can help?.