How to get Request object and LDAP user

Hi All,
How to get Request object, coz i want to see the out put of this code
IUser myUser = request.getUser();
String uid=myUser.getUid();
I want to get only LDAP user from the server, for that i am having  code but i think this code is returning me all user from the server.
com.sap.security.api.IUser user = null;
try {
      IUserFactory userFactory = UMFactory.getUserFactory();
     IUserSearchFilter searchFilter = userFactory.getUserSearchFilter();
ISearchResult searchResult = userFactory.searchUsers(searchFilter);
   int count = 0;
    List list = new ArrayList();
     while (searchResult.hasNext()) {
                  count++;
                   String uniqueid = (String) searchResult.next();
                    user = userFactory.getUser(uniqueid);
                    list.add(user.getUniqueName());
This code is giving me all user from the server LDAP and as well as portal user.
But i want only LDAP.
Please help me out. It's urgent.
Regards,
Deepak

Hi
use the following code
//Request
IWDRequest = WDProtocolAdapter.getProtocolAdapter().getRequestObject();
//User
IWDClientUser = WDClientUser.getCurrentUser();
Regards
Ayyapparaj

Similar Messages

  • How to get record created and modified user name from SharePoint Database?

    Hi,
    My SharePoint Portal is in Window Authentication. Some users have added requests to Lists. I want to find user name of the Created By and Modified By.
    Only ID is available in the corresponding columns in Content Database table. In which table the users details would store in Content Database.
    Thanks & Regards
    Poomani Sankaran

    hi, you can find the user details inside UserInfo Table in content database. But i would suggest not to directly query the content databse not even for select as it will affect the indexes.
    why not follow the link
    http://www.sharepoint4arabs.com/AymanElHattab/Lists/Posts/Post.aspx?ID=99
    also if you just need the basic created by and modified by info than use SharePoint Object Model To get these values using ECMA script use below link
    http://www.c-sharpcorner.com/UploadFile/anavijai/get-created-by-and-modified-by-values-from-sharepoint-2010-l/ using Client side object model https://msdn.microsoft.com/en-us/library/office/ee534956%28v=office.14%29.aspx?f=255&MSPPError=-2147217396
    Using server Side Object model
    http://www.sharepointcto.com/View.aspx?id=15
    Whenever you see a reply and if you think is helpful,Vote As Helpful! And whenever you see a reply being an answer to the question of the thread, click Mark As Answer

  • How to get request object in workflow?

    can anyone help me out how to use <ref>:display.state</ref> in workflow to get the state of the rquest object?

    Hi Sunil,
    Every field which we are creating in additional data ( charateristics) are saved in table. Kindly check and confirm the table name but i think it's MARCO , just search and check I am not sure about the table name.
    But the answer for your question is every data is saved in table. and from this table you can pick the values same like DRAW table for document type etc.Take help of workflow or abap person ,he can immediately give you table names.
    I hope this will resolve the query.
    Regards,
    Ravindra

  • How to get system status and user status ?

    how to get system status and user status for the given production order?
    In which PP table we can
    find these?
    Thanks&Regards
    Satish

    Hi Ram,
    Use the FM "STATUS_READ" to read both the system and user statuses for an Order.
    Alternatively, the following tables store the user and system status info:
    JSTO- Status object information
    JEST- Individual Object Status
    Hope this helps.
    Let me know if u need further information.
    Regards,
    Sonal

  • How to get a formula from the user from a text box in a webpage

    Hi. I would like to know how to get the formula from the user who enters in a textbox. This formula can have any number of variables starting with a and goes on.
    The complexity of the formula can go upto sin, cos, ln, exp. Also user enters the minimum and maximum values of these variables. Based on a specific algorithm (which I use) I would calculate a *set of values, say 10, for each of these variables, substitute in the formula and based on the result of this formula, I select ONE suitable  value for each of the variables.
    I don't know how to get this formula (which most likely to be different each time) and substitute the values *which I found earlier.
    Kindly help me out in this issue.
    Thanks

    The textbox is the easy part. It's no different than getting a String parameter out of an HTTP request.
    The hard part is parsing the String into a "formula" for evaluation. You'll have to write a parser or find one.
    Google for "Java math expression parser" and see what you get.
    Or write your own with JavaCC.
    %

  • OIM 11g R2 - How to get requester key in validator

    Hi All,
    I am writing a small validator code which throws an exception,if the request is trying to submitted by xelsysadm.May I know how I can get the requester details (like key) in the validator code.
    The validator API takes RequestData as a parameter but there is no way to get the requester details from RequesData object.Thanks in advance.

    I got the solution using the below discussion
    How to get Requester Login information into the request dataset validator
    Thanks.

  • How to get the groups info for user

    Hi guys i am new to ALUI..
    i am trying to do some enhancement.
    i want to know how to get the information of the users group and the group details using the IDK API?
    Can sombody share some code?

    Hello,
    You are welcome. Here is one way of get what you want:
    1) get all groups id's
    IPortletContext - >IRemoteSession -> IUserManager - > getCurrentUserGroups() -> int []
    2) get details about group
    IRemoteSession.getObjectManager(ObjectClass.UserGroup ) ->
    cycle over int []: {
    IObjectManager -> querySingleObject(comminity id) -> IObjectQueryRow -> getName()
    Because you are going to use PRC and make SOAP calls to portal don't forget setup WS to pass token to portlet (check WS settings)
    Edited by Bryazgin at 05/29/2008 7:48 PM

  • How to move database objects from one user to another user

    Could someone help how to move database objects from one user to another user
    Thanks in advance

    Thanks a lot for the reply.
    Actually I wanted to know whether there is any command to change the owner ship of the table.
    For ex table1 belongs to user1. can the owner of table1 to be changed to owner2.
    directly using an oracle command. I knew that it can be done using import and export, since the table was 200 million thought the rename command would be faster instead of import and export.
    Thanks Billy for letting me know that it is not possible using oracle query.

  • How to get current time and date??

    How to get current time and date from my PC time and date to the java application??
    i use java.util.* package but got error, that is:
    - java.util.* and java.sql.* class are match
    - abstract class cannot be instantiated
    so what can i do, pls guide...thanks...

    There is a method in the System class that will return the current system time. You could also instantiate a Date, Time, Timestamp, or Calendar object, all of which get created with the system time by default.
    Don't import *. Import the specific classes you need.
    Next time, post the actual text of the exceptions/compile errors. If you make people guess, most just won't bother.

  • How to get BP kind based on user name?

    Hi,
    How to get BP kind based on user name?
    Is there any table other than BUT000 which gives the Business partner no. and BP KIND?
    What is BLUEPRINT table?

    Hi John,
    do you mean Type:
    1     Person
    2     Organisation
    3     Group
    or Role like
    000000     Business Partner (General)
    BBP000     Vendor
    BBP001     Bidder
    BBP002     Portal Provider
    BBP003     Plant
    BBP004     Purchasing Company
    BEA001     Billing Unit
    BUP001     Contact Person
    BUP002     Prospect
    BUP003     Employee
    BUP004     Organizational Unit
    BUP005     Internet User
    The Role can be found in BUT100.
    Regards
    Gregor

  • How to get profile options & values at user & responsibility level by SQL?

    Experts, How to get profile options and values at user and responsibility level using SQL?

    SELECT
    po.profile_option_name as name
    , po.user_profile_option_name
    , decode(to_char(pov.level_id),'10001','SITE','10002','APP','10003','RESP','10005','SERVER','10006','ORG','10004','USER', '???') as "LEVEL"
    , decode(to_char(pov.level_id),'10001','','10002', app.application_short_name,'10003', rsp.responsibility_key,'10005', svr.node_name,'10006', org.name,'10004', usr.user_name,'???') as context
    , pov.profile_option_value as value
    FROM
    fnd_profile_options_vl po
    , fnd_profile_option_values pov
    , fnd_user usr
    , fnd_application app
    , fnd_responsibility rsp
    , fnd_nodes svr
    , hr_operating_units org
    WHERE 1=1
    AND pov.application_id = po.application_id
    AND pov.profile_option_id = po.profile_option_id
    AND usr.user_id (+) = pov.level_value
    AND rsp.application_id (+) = pov.level_value_application_id
    AND rsp.responsibility_id (+) = pov.level_value
    AND app.application_id (+) = pov.level_value
    AND svr.node_id (+) = pov.level_value
    and org.organization_id (+) = pov.level_value
    ORDER BY 1, pov.level_id, 5
    You'll need to apps initialize your SQL session before running this ...
    Regards,
    Jon

  • How to get status profile (STSMA) in user exit ILOM0001

    Hi ABAPers,
    I am currently working on user exit ILOM0001 (Check before saving a functional location) and need to get information about status profile (STSMA). I have checked parameters that is imported into this user exit (DATA_IFLO, DATA_IFLO_OLD, DATA_IFLOS) and none of them have STSMA.
    Could anybody help me how to get this field STSMA into user exit ILOM0001?
    Appreciate it.
    Thanks
    Regards
    Hadi

    Dear Kolla,
    Really appreciate your answer, but
    I don't want to generate or make settlement receiver.
    I was building a script in user exit IW010009,
    And the issue is I can not capture the content of field settlement receiver.
    If we want to capture screen field, ex. equnr, we can use structure CAUFVD,
    when i see the technical detail in this field, the structure for settlement is DKOBR, field EMPGE, but i cannot call it on debug.
    Kindly need your help on this issue.

  • How to get Requester Login information into the request dataset validator

    Friends,
    I need to check whether the requester is part of a group or not before submitting the request. If not I need to throw an error.
    Can you please let me know how to get Requester information.login into the request validator?

    Hi Thiago,
    I am getting the requester id from the requestData in the request data validator. Here is my full code for your reference.
    Bikash - I even tried with RoleManager service but still same error.
    public void validate(RequestData requestData)
    throws InvalidRequestDataException {
    tcUserOperationsIntf UserOppsIntf =Platform.getService(tcUserOperationsIntf.class);
    try
    tcResultSet result=UserOppsIntf.getSelfProfile();
    result.goToRow(0);
    String requesterID = result.getStringValue("Users.User ID");
    String userKey=result.getStringValue("Users.Key");
    System.out.println("Request Login:"+requesterID);
    if (isMemeber(getOIMGroupKey("testGroup"),userKey))
    System.out.println(requesterID+" is a Member");
    else
    System.out.println(requesterID+" is not a Member");
    String reason = "Note[REQUEST_SUBMISSION_ERROR].text:You are not authorized to submit this request.";
    throw new InvalidRequestDataException(reason);
    catch(Exception e) {
    e.printStackTrace();
    private String getOIMGroupKey(String GroupName) throws Exception
    String groupKey="";
    tcGroupOperationsIntf groupInstanceOps = Platform.getService(tcGroupOperationsIntf.class);
    HashMap searchFor = new HashMap();
    searchFor.put("Groups.Group Name", GroupName);
    tcResultSet results = groupInstanceOps.findGroups(searchFor);
    for (int i = 0; i < results.getRowCount(); i++) {
    results.goToRow(i);
    groupKey = Long.toString(results.getLongValue("Groups.Key"));
    System.out.println("GroupKey:"+groupKey);
    return groupKey;
    private boolean isMemeber(String groupKey,String userKey) throws Exception
    boolean member=false;
    try
    tcGroupOperationsIntf groupInstanceOps = Platform.getService(tcGroupOperationsIntf.class);
    long grpLong = Long.parseLong(groupKey.trim());
    tcResultSet grpResultSet = groupInstanceOps.getAllMembers(grpLong);
    for(int i=0;i<grpResultSet.getRowCount();i++)
    grpResultSet.goToRow(i);
    long usrKeygrp = grpResultSet.getLongValue("Users.Key");
    if (usrKeygrp==Long.valueOf(userKey))
    member=true;
    break;
    catch(Exception e) {
    e.printStackTrace();
    member=false;
    return member;
    }

  • How to get BP number having SAP User ID .?

    HI all,
    How to get BP number of a user having his SAP User ID .?
    Help reg this.

    hi check this...
    In SUS Link between registered User ID and Business Partner (Vendor) Number
    Assign User to Business Partner
    regards,
    venkat .

  • How to call request object of IPortalComponent in KM Scheduler application

    Hi
    We are reading RFC Table data using JCO Connection Pool(JCOClientPoolEntry. Please find the below teo line code.If we put this code in KM Scheduler application then its throwing error for the request objecct of IPortalComponenetRequest.
    IJCOClientPoolEntry jcoPoolEntry = null;
    jcoPoolEntry = clientService.getJCOClientPoolEntry(sysId, request);
    Can you please let me know how to use request object of IPortalComponent in KM Scheduler application?
    Thanks,
    Susmita

    Hello GopalY,
    In my experience its not possible to call OLE object in Webui. Maybe customer 3 party application will be supply some web service to handle credit card payments. I think this is the simple way to access 3party application.
    Regards,
    Zafer,

Maybe you are looking for

  • Need help with ObjectInputStream

    i'm sending a serialized object over an ObjectInputStream, this object has a display function. my server uses readObject in a while true loop and everytime he gets an object he prints object.display. everytime i send an object the server recieves it

  • Status metric for the OEM plugin for DB2 Databases

    Hi, I am doing some testing of the OEM system monitoring plug-in for an IBM DB2 Database. I am starting with some very basic alerts such as when an instance is down. However, it is not working as I would expect. When the instance is stopped using the

  • How can I get a Serial Number?

    I have bought the creative cloud adobe package and have downloaded all the software I needed to. I followed the instruction which is not a problem, though I have one. They didn't give me a serial number so now I'm stuck... I don't know much about ins

  • Can I use imovie 9 with a sony handycam DCR-HC36?

    I am using a mac mini 2.4 ghz intel core 2 duo with OS X 10.6.8.

  • Writing to a non-base level member

    I don't believe it's possible to write directly to non-base level so I'm looking for alternatives.  We are trying to simplify the budget input process in situations where we have an occupational code with multiple levels.  For example, we have a Tech