JS link - change field according user logged in

Hi at all,
is it possible in JS Link  to get the current user (user logged in ) ?
I have to show different button in a field according the group of the user.
I can show the button but I have difficulties to get the current user and change it .
Thanks in advance
IJ

The solution is : _spPageContextInfo.userId Thanks to Giuseppe Marchi

Similar Messages

  • Change The Way Users Log On Or Off

    So I am trying to change the way users log on or off, and so I went onto User Accounts, clicked it, and it shows an error. I need to uninstall vrlogon.dll, somehow. I have searched through the internet, and I did all the steps. However, when I rebooted my laptop, it did not work. I was going to the Welcome Screen. If you can, please help.

    Hello,
    Which version of Microsoft Windows are you running?  I do not have a VRLOGON.DLL file on my installation of Microsoft Windows 7 Ultimate Edition x64.
    Regards,
    Aryeh Goretsky
    I am a volunteer and neither a Lenovo nor a Microsoft employee. • Dexter is a good dog • Dexter je dobrý pes
    S230u (3347-4HU) • X220 (4286-CTO) • W510 (4318-CTO) • W530 (2441-4R3) • X100e (3508-CTO) • X120e (0596-CTO) • T61p (6459-CTO) • T43p (2678-H7U) • T42 (2378-R4U) • T23 (2648-LU7)
      Deutsche Community   Comunidad en Español Русскоязычное Сообщество

  • How to retrieve password character according to user logged on ?

    Hi,
    Can anybody help on this issue .
    How to retrieve password character according to user logged on ?
    I have a program will runs on multiple logins.I like restrict so that only an admin can  retrieve the password.
    How to do it ?

    > I have a report program which uploads sensitive information to presentation server.The program is also used by multiple users for other use.(billing info on excel sheet)
    That is the bugger with generic (executable) functionality. When used for multiple requirements which are too far from each other then they break or the "lowest common denominator" calls the shots.
    If this data is being uploaded from the application server, then why don't you just protect it there. The S_DATASET for that program context will not be very usefull, because it is generic.... so you can look into using S_PATH.
    > Since a user might have already logged on to system i can only ask a password as a authorization to run the program.
    Again, this means that anyone who knows the generic password (or can display / debug the code) will be able to access the data.
    A better variant of the same would be to create a symbolic service user, and prompt for that user's password before the data is downloaded. You can then use standard functions for prompting for passwords, which also update the lock counter.
    => If the password is locked due to incorrect logins, then the program is locked for this functionality as well.
    => You can periodically lock / unlock / change the access to the program, by administrating the service user in SU01.
    => Do not give this service user any authority at all - you only want to prompt for knowledge of the password, but not actually log the user itself onto the system. (see report RDDPWCHK for some example coding)
    In German this is called "von hinten durch die brust", which means something like "unusual approach but still works anyway".
    > I like to restrict access of retrieving the password  only to a  basis team.(others user can run the program)
    I would still protect the source data itself using unique authority to access it, and then control that.
    Cheers,
    Julius

  • Logged on - said in use - changed to default user - now everythin lost

    Please confirm your Firefox Help question
    Hi tommyxxx,
    Before your Firefox Help question (logged on - said in use - changed to default user - now everythin lost)
    can be seen by our support community, you need to confirm the
    account you just created by clicking on the link below:
    https://support.mozilla.com/en-US/users/activate/814d36985a41403b36fd2fdf0e61c39ae8ed18fe
    If you did not ask a question or changed your mind, simply delete
    or ignore this email; you will not receive any more email from
    us.
    Thanks again for asking the question -- we're sorry you're having
    trouble with Firefox, but our community of volunteers is looking
    forward to helping you get it resolved as quickly as possible.
    As you may know, Firefox Support (like all of Mozilla) is
    community powered -- help is provided by users like you! Want to
    take part? Browse other users' questions at
    https://support.mozilla.com/questions?filter=unsolved -- you might
    just make someone's day!

    The OP posted in another threads ([[/questions/862182]] and [[/questions/862185]]) with a Firefox 1.0.7 user agent.
    *Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7
    <blockquote>Locking duplicate thread.<br>
    Please continue here: [[/questions/862185]]</blockquote>

  • User change password after first logging in Oracle 11g

    Hi
    Can you help someone in connection with this problem:
    user can not change password after first logging in Oracle 11g
    All the best
    Ragip Avdijaj

    Sounds like they are not getting logged in at all, so they are never getting to the point where they can change the password, but we need to see more detail to give a better answer (an example or copy-paste of a sqlplus session might help)

  • Last Changed On field in User Maintenance

    Is there any possibility to delete last record in Last Changed On field in SU02 transaction?
    Where is (in what database table) this record stored?
    Firstly I checked USH2-4-10-12 tables but with no luck, then I discovered that recent changes can be seen via Change Documents (Information -> Change Documents for Users). There I can see chenges but cannot delete them.
    Then I discovered RSCDOK99 report that allowed their deletion but even when last record is deleted (from CDHDR) the value in maintenance window doesn't change.
    What is the trick? Can you suggest the db table that stores this record?

    Why do you want to Change / Delete history data?
    - Abhinab

  • Universe object that points to certain field according to the user PVL

    Hi universe designing experts !
    Marianne solved a problem I have in [this|Web Intelligence: Hide / Show object according to InfoView Locale; post. I wanted to replace an object/column in a report according to the users locale. This was done at report level with a selection containing the getPreferredViewingLanguage() function in WebI.
    My question now is, could I somehow define in the universe an object that, according to the PVL of the report viewer, points to a different field in the database ?
    We have description fields in the databse for different languages.
    Thanks in advance !
    P

    Hi Marianne
    Thanks again for your response.
    Marianne Loenen wrote:
    > If you want a solution for this written down, you need to give the database you use.
    We are using an Oracle 10g database.
    Marianne Loenen wrote:
    > In Oracle there is a system view v$nls_parameters in which you can lookup stuff like that.
    > It's a one row view, so you can use a (select xxx from v$nls_parameters) as column in any query.
    OK I didn't know that. But I don't think that I could use this variable in this situation. Please correct me if I'm wrong...
    What I want to do is this:
    A user with Preferred Viewing Language nl_NL and a user with PVL en_GB are requesting the same report. In that report there is a field with a description about another field. The descriptions are 2 different columns in the database. You showed me before (thanks again) how I could switch the 2 field according to a users PVL that I could query from the system ( getPreferredViewingLanguage() ). I want, if possible, to do this at Universe level so I only have to drag 1 single object in the query that corresponds to the right column according to the report viewers PVL... So the en_GB guy will see English descriptions and the Dutch guy will see the Dutch descriptions all from the same object...
    Would be cool if that was possible...
    Thanks again for helping !
    P

  • How do I change the user log in screen background on Lion?

    Note:I'm talking about the screen for Users Log where multiple users log in.
    Right now the default is a solid grey. there has to be a way to change it to something more esthetically pleasing.

    Look for a previous entry in this group
    "Lion Default Login Window"  It was back around August 2nd or so.
    There may be a better way than is listed in that thread but so far I haven't found it but I have been tied up with other Lion problems and have not really looked much further on the default login window issue.

  • Pre populating the database field when a user logs into web forms

    Hi,
    When my users log into the web forms application I want the database name field to be pre populated, how do I do this, I presume it can be defined in the config files ?
    Thanks in anticipation.
    SDG.

    Hi,
    I think u are refering to the username, password, database field (connect string)
    here. If this is the case then you can use LOGON(username, password||'@'||connectstring) procedure and hardcode the connect string.
    Best Regards
    Rajesh Alex

  • Control PO field one user can change

    Hello,
    We are implementing SRM 7 with ECS.
    We want to restrict fields a user can change in a Purchase order. How can we achieve that? For instance we do not want the user to be able to change cost assignment.
    Thanks in advance.

    The visibility and editability are controlled by IMG in SRM 7. In SPRO,
    SRM server >> Cross application basic settings >> Extensions and field controls >> Configure field control >> Configure controls for fields of substructure
    There you can hide or make accounting information display only.

  • Cannot change anything in user account and family safety, even logging as an administrator account.

    My 1st user account was an administrator account, 2nd user account was a standard account. 3rd user account was a guest account of window 8 single language, however i accidentally made a mistake by setting guest account from standard account to become an
    administrator account. I also set down the 1st user account from administrator to standard account and after these stupid settings, the guest account becomes administrator account anyone can access in without any password, the 1st and 2nd accounts become standard
    accounts! Before this mistake, the 1st user account was the main account of mine, 2nd and 3rd (guest account) were logged in very rarely.
    The problem is when i logged in guest account as administrator, i cannot set the 1st or 2nd back to become another administrator account. Something has gone strange, it has been prevented me to set the others to be administrator and the guest back to standard
    account. Being as an administrator account, the guest account was totally useless in changing settings. When i logged in with 1st and 2nd account, i also cannot change anything in the user account settings (change type of user account) and family safety, all
    attempts to change the user account settings was useless such as i never tried. I also tried "refresh your computer without losing files" but not worked. Please provide me some advices!
    I did not find the forum for win 8 single language, so i place my question here.

    Thanks for your reply. I tried to go to safe mode of win 8 by holding the shift key while clicking "restart" on the login screen. (My login screen now shows 3 account users). Then i chose troubleshoot -> advanced options -> windows startup
    settings-> i went to safe mode. The safe mode only showed a complete black screen with an only window: "Administrator: cmd.exe". I did as you said (typing NETPLWIZ) and the User accounts window appeared. I went to "properties" of each
    user account and set 1st and 2nd accounts to Administrator but got the error: "This user cannot be added. Access is denied." and another error window: "Usert accounts: the group membership for ... could not be updated."
    Yesterday, i went to elevated command prompt as an administrator and typed "net user administrator /active:yes" with hope that the built-in administrator would be activated and i would use it for full control settings of 3 other user accounts.
    But i got the error: "system error 5. Access is denied."
    Now, my position is quite bad. Login with guest account which was set as administrator, i still can not have full control of this laptop, so that all attempts of mine to change the user account settings is denied. This guest account also does not have a
    password at all so that everyone can open my computer without typing a password. Because access is denied, i cannot set a password for the guest account even now it is the administrator account and i am loging in it.
    p/s: I tried to refresh the system but still got the error: "There was a problem refreshing your PC. No changes were made". And i also tried to restore the system, but got the error: "System restore did not complete successfully. Your computer's
    system files and settings were not changed. Details: A volume shadow copy service component encountered an unexpected error. Check the Application event log for more information (0x80042302)"
    I went in registry editor in safe mode and did as you said but there was no "AutoAdminLogon", "DefaultUserName", "DefaultPassword". I only saw "AutoLogonSID" and other different names...
    The problem i got half year ago has still remained and recently i made this mistake. https://social.technet.microsoft.com/Forums/en-US/8ebd868c-bdfd-412e-95a6-9dc0095d431c/cannot-paste-any-online-pictures-from-any-websites-into-wordpowerpointonenote-2013?forum=officeitpro
    I am a young woman who always creates mistakes when setting computer because of my carelessness.
    Hi,
    These phenomenon should be access rights problem, you need to check your current system User Accounts status. In my opinion, your administrator account probably disabled.
    Open Run, type LUSRMGR.MSC, press Enter.
    Then check your current system account which Group they are belongs to.
    If there is any progress, please feel free let me know.
    Roger Lu
    TechNet Community Support

  • Hiding Links from Infoview (e.g Log off) for some users

    Hi,
    Can we hide links in Infoview (e.g log off) for some users in BO XI R2 ?
    Thanks

    Hi Vaneet,
    No we cannot hide links of infoview  for some users in BO XI R2.
    Thanks,
    Praveen.

  • Could not find the log in SCUL for changes made into user.

    Hi,
    We assigned role to user in prob system in CUA .
    I cannot find who has made those changes into that user.
    I have looked in SCUL but could not find it. I did not find any changes in SUIM.
    Can anybody help me hjow can i find who has added that role.
    Thanks Rajesh
    Edited by: Rajesh Nanda on Apr 1, 2009 12:10 AM

    Hi Rajesh,
    this is the normal behaviour. The user gets changed in the CUA-child system by the user who is used in the RFC-connection form CUA master to cua child. Only in the case you use a trusted/trusting RFC connection, the user who performs the changes in the central system connects also to the child systems. Only in that case you will find the 'real' user as changer in the child system change docs.
    With SAP note # 1079207 new change documents are delivered for the CUA-case. To evaluate that changedocs you can use the new report rsusr100n (Ithink ,that it is still not integrated in SUIM until now, so you have to start it in se38,...)
    b.rgds,
    Bernhard

  • How to set printer margins if using a lot of printers in virtual desktops which are deleted each time users logs off

    Hello,
    i am using Firefox version 31. I have a problem with page setup margins. I need to use left
    30mm; right 10mm; top 20mm; bottom 20mm. I am using VMware floating assignemnt linked clones
    virtual desktops. After users log off - machines are deleted and users next time logs on get's brand
    new VDI's. Users gets printers to VDI using login script from Active Directory.
    Option Explicit
    Dim strPrinterUNC, objNetwork
    strPrinterUNC = "\\some_server\printer_number_1"
    Set objNetwork = CreateObject("WScript.Network")
    objNetwork.AddWindowsPrinterConnection strPrinterUNC
    WScript.Sleep (20000)
    objNetwork.SetDefaultPrinter strPrinterUNC
    Set objNetwork = Nothing
    Each user have different logon script, because they use different printers (different printer names e.g. \\some_server\printer_number_2 ; \\some_server\printer_number_3 and etc. Page setup margins in Internet Explorer are ok. But how to make Firefox page setup margins as i need? For other options i have
    used CCK2 Wizard 2.0.4 tool. It worked fine. Maybe i can put some information in C:\Program
    Files\Mozilla Firefox\defaults\pref\autoconfig.js I have some usefull data in it allready. I
    have found info that: "Setting print margins is done in the printer settings". I have a lot of
    printers, so i can not set printer margins individualy for each of them. Now mozilla shows top,
    bottom, right, left each 12.7 mm. What should i do if i have a lot of printers in enterprise
    environment?

    Firefox has a profile folder that has preferences to save this. But the config that would need to be changed is:
    print. save_print_settings = True - (default): Save the print settings after each print job
    Locking that preference: [http://kb.mozillazine.org/Locking_preferences]
    Or done manually:
    #In order to check the margins, we need to go to ''File'' > ''Page Setup''.
    #Once this is done, switch to the ''Margins & Header/Footer'' tab.
    #Check what's set there under ''Margins''.
    The following are the default values for ''Margins'':
    Check these values accordingly and change them if necessary.

  • Is there a way to link text fields in an interactive form in ID CS6?

    I'm recreating a form where they had several text fields on top of each other. If the form were not interactive, that would be so the user could use it to fill out longer, more detailed responses to the questions.
    But since it's supposed to be interactive, I question the need for this, unless I could link them somehow, so that a user's long answer would flow from one field to the next as needed.
    Is there a way to do that? Or would it work better to combine the 3 text fields into one big text field?
    If the latter, is there a way to change a text field back into a text or picture box? I can't seem to find that option.

    You cannot link PDF fields to each other.
    Make a text field Multiline and Scrollable to allow for extra input (in Acrobat, but not in InDesign, you can also set a limit on the number of characters).
    As I said elsewhere, choose Object > Interactive > Convert to Object to change a field to a regular object.

Maybe you are looking for