Checking user exist on resource or not before creating it

Hi Friend,
I have requirement in which I need to check user id exist in resource or not before creating it.
I can not testUser as it checks user in LH not in resource. I need to see if my user is existing in particular resource.
Can some one throw some light on it?
Thx

Hi Mark,
I am creating user from resource A to resource B during active sync, but when I am creating user in recource B , i will generate unique ID and will check if any other user with same ID is existing or not.
Thx

Similar Messages

  • Checks users Exists in user group or not?

    Hi All,
    bool userExsists = SPContext.Current.Web.CurrentUser.Groups.Cast<SPGroup>().Any(g => g.Name.ToLower() == "groupname".ToLower());
    Is there ay alternative for findings that user is in group or not? Is it best way to achieve this?

    Hi,
    To check if a user exists in user group, please use the code below:
    string userName = "contoso\\admin";//your user account
    string groupName = "SP Members";// your user group
    using (SPSite spSite = new SPSite("http://sp")) // your site collection URL
    using (SPWeb spWeb = spSite.OpenWeb())
    SPUser user = spWeb.EnsureUser(userName);
    if (user.Groups.Cast<SPGroup>().Any(g => g.Name.Equals(groupName)))
    Console.WriteLine("User " + userName + " is a member of group " + groupName);
    else
    Console.WriteLine("User " + userName + " is NOT a member of group " + groupName);
    Or you can use PowerShell command below:
    $w = get-spweb http://my
    $gs = $w.SiteGroups
    $g = $gs[12]
    $user = $g.Users.GetByEmail("[email protected]")
    if($user -eq $null){write-host "User Not Found"}
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Check Client exists in system or not

    hello,
    how to check given input client number exists in system or not?
    Any FM or function we have to write?
    Wishes
    Prince.

    A client of an SAP system exists by virtue of appearing in table T000.
    Whether the client contains data can only be determined by reading tables for data in that client.  For example, to see whether user IDs exist in client 300:
      SELECT COUNT(*) UP TO 1 ROWS
        FROM USR02 CLIENT SPECIFIED
       WHERE MANDT EQ '300'.
    To know whether a client has been populated with data from another client, then it is probably best to use transaction SCC3 to check the client copy logs.  Usually when creating a new client, a client copy will be used to copy standard configuration and security profiles.
    If a client defined in table T000 does not contain any user IDs, then it is possible to logon to that client using the special user ID SAP*.
    Scott

  • Activating "Check user privileges​" causes TestStand to not start properly.

    Recently we checked the box "Check User Privileges" under Station Options->User Manager.
    Now when we try to start the Teststand Sequence editor it opens but with all functionality grayed out so that no action whatsoever can be taken.
    If we make an attempt to use File-Login no new box appears but the GUI flickers for a millisecond as if a dialog was open and closed at almost the same time.
    If we try to start a sequence file directly from windows explorer it replies with an error message : "Could not open the sequence file(s).... Error code: -18360, User does not have required privilege".
    What has happened and does anyone have any good ideas about how to remedy this?

    Hi GiangV,
    You can change the "Check User Privileges" setting back to the default by modifying the TestExec.ini file, located by default at (C:\ProgramData\National Instruments\TestStand 2010\Cfg)
    With TestStand closed, change the line CheckUserPrivileges = False to CheckUserPrivileges = True
    Also, the login dialog issue can occur if the loginlogout sequence becomes corrupted (this would explain the flickering behavior).  To restore this sequence to its default state, you can do the following:
    Move the FrontendCallbacks.Seq file to a different location (such as my documents), located by default at (for TestStand 2010):
    C:\Program Files\National Instruments\TestStand 2010\Components\Callbacks\FrontEnd\FrontEndCallbac​ks.seq
     Run a repair install of TestStand to recreate the default version of the file
    Hope this helps!
    Al B.
    Staff Software Engineer - TestStand
    CTA/CLD

  • Checking user existance , how?

    Hi,
    How can I check existance of a user in a sap client?
    Thanks

    Hi,
    Try this link
    [http://sap.ittoolbox.com/groups/technical-functional/sap-basis/all-users-list-254303]
    Regards,
    Surinder

  • Check User Can Access the site collection Are Not?

    Hi All 
    I have some requirement to check user can access site are not through powershell?
    Recently we done migration from 2010 to 2013 SP after that i got some problem some users can not access site  but this user have permission in sp 2010 site .
    Regarding this i need to check specific user can loing or Access  the site collection are not. using powershell
    Some one said impersonate user we can check user can open the web are not but i don't know this impersonate.
    Please help me guys.... 

    Hi,
    You can check the permission for specific user with powershell. Here is the link. Hope this will help.

  • How to check user profile service working in sharepoint 2013?

    HI All,
    How to check user profile service working or not in sharepoint 2013? Thanks.

    Hi,
    Select which OU's you want to synchronize, then check if all users in those OU's have a user profile in the user profile service application.
    Nico Martens - MCTS, MCITP
    SharePoint 2010 Infrastructure Consultant / Trainer

  • How to check whether portal user exists or not using UM API.

    Hi Experts,
    Let us say i need to create an user account "PortalUser",i know how to create an user,setting first name,lastname,password for that.
    but here before creating the portal user, i need to check whether that user exists or not.If user already exists ,then i  need to skip the below for creating the user.
    IUserFactory userFact = UMFactory.getUserFactory();
    IGroupFactory groupFact = UMFactory.getGroupFactory();
    IRoleFactory roleFact = UMFactory.getRoleFactory();
    IUser tuser = userFact.getUserByLogonID("PortalUser");
    IUserMaint newUser = userFact.newUser("PortalUser");
    newUser.setFirstName("PortalUser");
    newUser.setLastName("Test");
    newUser.setEmail("PortalUser.Testatgmaildotcom");
    //Locale PortalLanguage = new Locale(Lang.toLowerCase(), "");
    Locale PortalLang=new Locale("en");
    newUser.setLocale(PortalLang);
    newUser.save();
    newUser.commit();
    IUserAccount userAcc = UMFactory.getUserAccountFactory().newUserAccount("PortalUser", newUser.getUniqueID());
    userAcc.setPassword("test1test$");
    userAcc.save();
    userAcc.commit();     
    Thanks in advance.
    Thanks
    Sony.

    Hi,
    Try this code,
    IUserFactory factory = UMFactory.getUserFactory();
    IUser user = factory.getUserByLogonID(userId);
    lastName = user.getLastName();
    firstName = user.getFirstName();
    refer this pdf,its very helpful
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/events/webinars-nw-rig/using%20the%20user%20management%20api%20with%20ep%20applications%20-%20webinar%20powerpoint.pdf
    Regards,
    Sunaina Reddy T

  • Web Dynpro image not found: The requested resource does not exist

    Hi everybody,
    I'm experiencing a strange Poltergeist, so I would like to cry out the issue and hope any kind sould could help me
    In my WebDynpro application, I show a JPG picture which is located in the own project, that means in "src/mimes/Components/metromadrid.net.formacion.Cursos". The image appears correctly in my Development environment, but when the activity is moved to the Consolidation System (I'm using JDI), the image doesn't appear. If I try to access it directly, via URL, the messagen shown is "404 Not found: The requested resource does not exist.." (the URL accessed is http://hostname:port/webdynpro/resources/metromadrid.es/formacionapp/Components/metromadrid.net.formacion.Cursos/foto_vacia.jpg)
    The point is that in the same Consolidation environment I have already some applications with images, which are found and loaded without any problem.
    I have checked if the image appears in the corresponding active repository and everything seems alright (I mean I can see the file there).
    Any idea? It would be really appreciated, since my time to solve the problem expires in few days...
    Thank you very much in advance!!
    Isidro Lopez

    Hi Isidro,
    your mime files were most probably not added to your NWDI activities when developing your Web Dynpro DC. This means when adding these mime files to the src/mimes/<comp package>.<Comp name> folder the Web Dynpro Tools have most probably not detected the new mime files. When testing your application on in your local development environment all images appear as they exist on your local file system. As missing mimes do not cause a CBS build failure you won't encounter a designtime error.
    Please check whether the corresponding mimes are listed as   'local only' (house symbol) in your DTR perspective. In case they are listed as 'local only' you must explicitly add them to an activity.
    I have also encountered this missing mime problem before but I have not started any investigation to really determine the reason for it.
    Best regards, Bertram

  • 404 Not Found,   Error: The requested resource does not exist.

    Hi all,
    When I try to access VC with the http://localhost:50400/vc where 04 is the CE1 instance, it returns the following error:
    404 Not Found
      Error: The requested resource does not exist.
    Any clues. Just to add that the CE1 servers are running green and nwa is accessible on same url.
    Regards.

    Hi
    Try with following link (VC should be in Caps) -
    http://localhost:50400/VC/default.jsp
    Also check whether you have proper admin roles assigned to your user id.
    Regards
    Sandeep
    Edited by: Sandeep Patki on Sep 16, 2009 8:47 AM

  • SRSP: [resources] folder not exist

    My environment is SCCM 2012 R2, SQL 2008 R2 SP2 on another server,
    the problem is the reporting service not working because SRSRP.log refer to this Error "the error with Bold and Italic line"
    quote:
    Set configuration~  $$<SMS_SRS_REPORTING_POINT><02-15-2014 16:42:04.278-120><thread=3024 (0xBD0)>
    Check state~  $$<SMS_SRS_REPORTING_POINT><02-15-2014 16:42:04.293-120><thread=3024 (0xBD0)>
    Check server health.~  $$<SMS_SRS_REPORTING_POINT><02-15-2014 16:42:04.309-120><thread=3024 (0xBD0)>
    Successfully created srsserver~  $$<SMS_SRS_REPORTING_POINT><02-15-2014 16:42:04.324-120><thread=3024 (0xBD0)>
    Reporting Services URL from Registry [http://sql2008-srv/ReportServer/ReportService2005.asmx]~  $$<SMS_SRS_REPORTING_POINT><02-15-2014 16:42:04.356-120><thread=3024 (0xBD0)>
    Reporting Services is running  $$<SMS_SRS_REPORTING_POINT><02-15-2014 16:42:54.869-120><thread=3024 (0xBD0)>
    Retrieved datasource definition from the server.  $$<SMS_SRS_REPORTING_POINT><02-15-2014 16:42:55.212-120><thread=3024 (0xBD0)>
    [sql2008-srv.horizonssoftware.com] [CM_HS1] [ConfigMgr_HS1] [SQL2008-SRV.HORIZONSSOFTWARE.COM]~  $$<SMS_SRS_REPORTING_POINT><02-15-2014 16:42:55.243-120><thread=3024 (0xBD0)>
    [MSSQLSERVER] [1] [] [HORIZONSSOFT\Administrator]~  $$<SMS_SRS_REPORTING_POINT><02-15-2014 16:42:55.243-120><thread=3024 (0xBD0)>
    [1] [0]~  $$<SMS_SRS_REPORTING_POINT><02-15-2014 16:42:55.259-120><thread=3024 (0xBD0)>
    Confirmed version [10.50.4000.0] for the Sql Srs Instance.  $$<SMS_SRS_REPORTING_POINT><02-15-2014 16:42:55.680-120><thread=3024 (0xBD0)>
    Extract resource language packs if exists  $$<SMS_SRS_REPORTING_POINT><02-15-2014 16:42:55.914-120><thread=3024 (0xBD0)>
    Loading localization resources from directory [D:\SrsResources.dll]   $$<SMS_SRS_REPORTING_POINT><02-15-2014 16:42:56.054-120><thread=3024 (0xBD0)>
    Looking for 'English (United States)' resources  $$<SMS_SRS_REPORTING_POINT><02-15-2014 16:42:56.569-120><thread=3024 (0xBD0)>
    Looking for 'English' resources  $$<SMS_SRS_REPORTING_POINT><02-15-2014 16:42:56.709-120><thread=3024 (0xBD0)>
    Found resources for 'English'  $$<SMS_SRS_REPORTING_POINT><02-15-2014 16:42:56.772-120><thread=3024 (0xBD0)>
    Confirmed the configuration of SRS role [ConfigMgr Report Users].  $$<SMS_SRS_REPORTING_POINT><02-15-2014 16:42:59.908-120><thread=3024 (0xBD0)>
    Confirmed the configuration of SRS role [ConfigMgr Report Administrators].  $$<SMS_SRS_REPORTING_POINT><02-15-2014 16:42:59.939-120><thread=3024 (0xBD0)>
    Retrieved datasource definition from the server.  $$<SMS_SRS_REPORTING_POINT><02-15-2014 16:43:00.001-120><thread=3024 (0xBD0)>
    Updating data source {5C6358F2-4BB6-4a1b-A16E-8D96795D8602} at ConfigMgr_HS1  $$<SMS_SRS_REPORTING_POINT><02-15-2014 16:43:00.017-120><thread=3024 (0xBD0)>
    Successfully get report server from Registry  $$<SMS_SRS_REPORTING_POINT><02-15-2014 16:43:00.376-120><thread=3024 (0xBD0)>
    Moved folder from /ConfigMgr_HS1 to /ConfigMgr_HS1.OLD.64.  $$<SMS_SRS_REPORTING_POINT><02-15-2014 16:43:02.404-120><thread=3024 (0xBD0)>
    Created folder [ConfigMgr_HS1].  $$<SMS_SRS_REPORTING_POINT><02-15-2014 16:43:02.513-120><thread=3024 (0xBD0)>
    Creating data source {5C6358F2-4BB6-4a1b-A16E-8D96795D8602} at ConfigMgr_HS1  $$<SMS_SRS_REPORTING_POINT><02-15-2014 16:43:02.887-120><thread=3024 (0xBD0)>
    Stopping service 'ReportServer'  $$<SMS_SRS_REPORTING_POINT><02-15-2014 16:43:04.088-120><thread=3024 (0xBD0)>
    Service 'ReportServer' has stopped  $$<SMS_SRS_REPORTING_POINT><02-15-2014 16:43:04.650-120><thread=3024 (0xBD0)>
    Delete old SCCMErrorResources folder  $$<SMS_SRS_REPORTING_POINT><02-15-2014 16:43:04.666-120><thread=3024 (0xBD0)>
    Could not find a part of the path 'C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\ReportServer\bin\SCCMErrorResources'.  $$<SMS_SRS_REPORTING_POINT><02-15-2014 16:43:05.321-120><thread=3024 (0xBD0)>
    Delete all srs* files from Reporting Service Location  $$<SMS_SRS_REPORTING_POINT><02-15-2014 16:43:05.336-120><thread=3024 (0xBD0)>
    Gathering resource files to deploy from directory [D:].  $$<SMS_SRS_REPORTING_POINT><02-15-2014 16:43:05.368-120><thread=3024 (0xBD0)>
    (!) The path [resources] does not exist, unable to gather files.  $$<SMS_SRS_REPORTING_POINT><02-15-2014 16:43:05.508-120><thread=3024 (0xBD0)>
    (!) InitializeSrsWhenNeeded error = The system cannot find the path specified.~  $$<SMS_SRS_REPORTING_POINT><02-15-2014 16:43:05.633-120><thread=3024 (0xBD0)>
    STATMSG: ID=7402 SEV=E LEV=M SOURCE="SMS Server" COMP="SMS_SRS_REPORTING_POINT" SYS=SQL2008-SRV.HORIZONSSOFTWARE.COM SITE=HS1 PID=1880 TID=3024 GMTDATE=Sat Feb 15 14:43:05.648 2014 ISTR0="SQL2008-SRV.HORIZONSSOFTWARE.COM" ISTR1=""
    ISTR2="" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=0  $$<SMS_SRS_REPORTING_POINT><02-15-2014 16:43:05.648-120><thread=3024 (0xBD0)>
    Failures reported during periodic health check by the SRS Server SQL2008-SRV.HORIZONSSOFTWARE.COM.~  $$<SMS_SRS_REPORTING_POINT><02-15-2014 16:43:05.664-120><thread=3024 (0xBD0)>
    120><thread=3024 (0xBD0)>
    quote:
    why this Error is occur
    Thanks and BR, Hatem M. Salah IT Manager Horizons Software Address: 93 Haroun Al Rasheed Street, Heliopolis, Cairo, Egypt. 11351. Tel: +202-26443709 Mobile: +2012-989-3406 Fax: +202-26320661 Website: www.horizonssoftware.com

    Thanks for all answers<o:p></o:p>
    I check all log files in SMS\LOG\ but I see only the above Error<o:p></o:p>
    the problem was that the srsrp can't find resources folder to deploy the reports in reporting server, despite I set the Resources folder in the D: directory, after many searching I
    found this registry key that related to srsrp directory because the Error say
    "Gathering resource files to deploy from directory [D:].
    (!) The path [resources] does not exist, unable to gather files" where the Resources folder
    already exist in D: directory, so I added dote in this registry [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SMS\SRSRP\InstallDir
    D:\.], after that the srsrp found the Resources folder and it is working fine now.
    Thanks and BR, Hatem M. Salah IT Manager Horizons Software Address: 93 Haroun Al Rasheed Street, Heliopolis, Cairo, Egypt. 11351. Tel: +202-26443709 Mobile: +2012-989-3406 Fax: +202-26320661 Website: www.horizonssoftware.com

  • Change material # before it checked weather its in SAP or not.

    Hi all,
    If user enter wrong material during creation of order, we have to change that material with dummy material and save the order.
    In sap if we enter material which is not exists in sap it will give us erro before it goes to mv45afzz user exit. is there any way i can change the wrong material with dummy material before checking materila is in sap or not.
    I am think we need to work on screen field user exit. but not sure which user exit or badi.

    Hi ABAP Developer,
    because this is enforced via check table there is no way except of creating own filtering transaction and let that call the standard.
    Regards,
    Clemens

  • Error :-The requested resource does not exist while opening the adobe form

    hello Experts,
    We are in Portal implementation face with ECC6 EHP4 and Portal EHP1
    We have developed adobe  form using HCM forms and processes and done the required configuration in SPRO
    When we are trying to open the form from ESS we are getting below error
    404 not found
    The requested resource does not exist.
    Please look into this issue and let us know any thing we are missing
    Sincerely
    Paresh

    is ADS working correctly?
    1.  Use transaction SA38 to execute the program FP_TEST_00.
           Detailed information about this test program and about how you
           should then proceed is given in the Adobe Document Services
           Configuration Guide in the Help Portal under:
           http://help.sap.com/saphelp_nw2004s/helpdata/en/37/504b8cbc2848a4
           94facfdc09a359b1/frameset.htm -> Adobe Document Services
           Configuration Guide -> Configuring the Web Service -> Securing
           Access to the Web Service ->Configuration Check -> Configuration
           Check for PDF-Based Forms in ABAP
           -  If the FP_TEST_00 form is displayed in the print preview, the
              ADS configuration is correct.
              -> If you use scenarios with an interactive PDF, proceed with
              point 5. Otherwise, proceed with the test under point 6.
           -  If the system displays an error message instead of a form, the
              configuration of ADS is incorrect.
              -> Carry out the additional tests from point 2 onwards.
    2.  Use transaction SA38 to execute the program FP_PDF_TEST_00.
        This enables you to check the RFC connection to ADS  (see the
        reference to the documentation given above).
           -  If the system displays the version number of ADS, the
              configuration of the RFC connection is correct.
    read the note 944221
    Please paste the whole error? Is any dump in ST22

  • Resource object not showing while provisioning a User

    Simple task but I am not able to fix this.
    I have a dummy resource whcih I created for some testing.However I am not able to see this resource when I try to provision a user to this resource.
    Any Ideas?
    FYI:.I have checked Allow SelfService,Allow All,Alow Multiple and Autolaunch check boxes
    Thanks
    -Mahi

    I have created a simple provisioning process for this..the process defination is of type approval .In there created a new task called "Manager Approval and in assigment assigned it to user's manager.
    I have already selected the resource object in the Object Name field.
    OIMUSER007...Do I really need to create a seperate IT Resource in this case?
    Its just a simple application like eg "WATCH"..
    Actually,
    I had earlier implemented this resource with Process Deffination as *provisioning*..
    Now I wanted to implement the workflow for this..For this Since I cant delete the process deffination..what I did I assigned the earlier process deff(provisioning to some other resource object(test) and created a new process deff(Approval) for this...

  • Checking to see whether a user exists in a Windows Active Directory

    I have a little java applet that has to run through a large list of users, and for one of its tasks, it has to check to see whether that user exists. Mostly this is the same as running with local users, with the one exception that I can't just check to see if a home directory exists.
    Right now I am checking the return code from "net user <username>", but executing this program for every potential user is extremely slow.
    Are any java facilities to deal with users on the local system? If not, does anyone else have any suggestions?
    Also, a note for any responses- I'm using java to get around the lack of any easy way to set up a good scripting environment on Windows. I have a completed tool, and I don't want to rewrite it.

    <sarcasm>
    I seem to remember this service - what's it called? Ah, Google. Yes.
    </sarcasm>
    Try http://www.google.com/search?q=java+active+directory+query

Maybe you are looking for

  • Getting an error when trying a script in Loginwindow manager

    Here is the applescript I wrote to map our H: drives off the network and it works like a charm. Code: property script_folder : ((path to desktop folder) as string) & "My Drives" tell application "Finder" mount volume "smb://unwosrv8/public" set MyNam

  • How to pass a string from a child thread to a parent thread ?

    I have a Server class listening to a particular port continuously using TCP Sockets . Whenever a client connects to this server socket, a new thread is created to obtain the data from the client socket. The following code shows how this is done - imp

  • Call a transaction with Application WD ABAP

    Dear Expert. In this moment I have the following requirement: I created an Application WD ABAP and created a button that must call a transaction of R/3 in the portal. I created a Transaction Iview and for this iView I created a Page. Now I want that 

  • Action Script 3 and button instances

    Surprise suprise, got the new CS3 Flash, but still has both earlier ***, nevertheless, I did something, don't know what, didn't mean to switch to AS3 (maybe), and somehow the stop actions don't work anymore. I still published in AS2 for Flash 8 as be

  • How to call a stored procedure from jsf

    Hello everybody, Currently i am working on jdeveloper 10g rel 2 version and i am using adf and jsf to build my application, In one of my jsp page i need to call a plsql stored procedure. Please provide me the soln Regards Ahamed