I've created a tool which is being used by multiple users who all have access to the shared folder the tool is saved in. In the tool I use the function UserNameWindows to pull in the username of the person using the tool. The function I use is =VLOOKUP(UserNameWindows(),T25:U34,2,FALSE) where the T25:U35 range is a mapping of user names to actual names.
The issue is that it works for me but my it's not pulling the username's of other users. Could it be that read-only is preventing the calculation from performing? I sat with one of the users to check and it's like the tool is remembering my Windows username from when I saved it.
You probably used Application.Username in the function and that is the username set in Microsoft Office. It will be blank if they have not set it in File>Options>General>User name. Use Environ("Username") in your function and it will use the windows login username.
Related
We'd like to distribute a Spotfire dashboard to different users, however the location of the data source file is on Sharepoint and for every user it's mapped to:
C:\Users\myusername\Sharepoint\spotfiretable.csv
Where myusername is the windows login account username and if I gave someone this Spotfire file they'd have to get prompted to re-direct Spotfire to the same folder mapped under their user name. Is there any way to avoid this and have Spotfire recognize the location of the data source automatically by getting the username information from system environment variables?
I would try embedding the data source in the dxp/ analysis with no data just the column names. This way visual ect don't have to be recreated.
Set up a python script to update the data source to the user name path and refresh the table. You can even trigger this event on load so it would be seemless for end user.
Here is a link showing python script to updated data source.
https://spotfired.blogspot.com/2014/05/replace-data-tables-from-file.html?m=1
If you require assistance with the python script post a new question with what code you've tried to implement.
Is it possible with Google Apps Script to either
A. Have a custom menu show up only for specific users?
or
B. Only allow specific users to click on a menu item.
I'd like to use the get active user command and try to bounce that off of a specific cell in another Google sheet in which our secretary maintains of about 5 administrators. Pull the email address from the sheet make it a variable called principal or directorOfTechnology etc. and have some kind of if statement so that either a menu only shows up for that person or an if statement so that if they are the correct person it does what I have and if not they get a message or something saying You are not able to click on this button etc.
If this is possible how would I go about writing this code? I am still in the learning stages and am not sure how to get this started and if this is even possible.
Doing this in the way you describe runs up against the fact that onOpen() runs in 'limited' authMode: you won't be able to read from the spreadsheet until the auth cycle is complete & your script gets to full authMode. (documentation)
Here are 2 possible work-arounds:
You can specify a list of authorised accounts in your script & check against them. This makes it difficult for a third party to manage the ACL as they have to modify the script directly.
You can deploy the script as a Sheets add-on & make it accessible only to members of a Google Group. e.g. You can then devolve management of the access group to a third party.
I have implemented the Dynamic Security in our BI-SSAS Projekt using a User-Dimension that is updated from Active Directory. I created SSAS-Roles and inside I restrict the users to see only the specified branches.
As Front-End they are using Excel. The problem is that Excel does not use as default the SSAS-Role created so I need to modify the conection string and add the following Property:Extended Properties="Role=PowerUsers" .
How can we use the role created without having to edit the conection string from excel ? Could be this Excel connection string property added as default?
Why doesn't Excel use the right role if you remove Roles= from the connection string? Is the user in question an SSAS admin? Are you 100% sure? If you connect Profiler to SSAS and watch while that user connects it should list the roles the user belongs to. If the roles say *,PowerUsers,Readers then the asterisk means the user is an admin. If you remove him as an admin you won't need to specify Roles on the connection string.
You might also install BIDS Helper and run the Roles Report on your cube. It will expand the security groups in case that user is in a group you weren't aware of.
There is not directly way in the standalone Excel pivot table, but there are a couple of potential approaches you can try:
1) Save the connection string (file) in a shared folder where your users can access it all, you don't have to modify anything in Excel once you specify that file(folder), but you still have to modify that file in the folder. (not good but should be okay)
2) 'IF' you are using SharePoint excel service, the thing is simple: just create a SSS, all can be managed under SharePoint SSS
I thank you for your time. I have a 2010 excel document that I would like when a user opens the document gets thier enviornment "user" name and populates a cell on which I would like to use this informatoin to search LDAP for that users "title" We are using Novell Edirectory and not Active Directory but for sure have an LDAP server.
(Maybe its possible to get this information about the user title without the populated "user" field? built into the ldap search of current logged in user not sure the best method.)
(I of course have been all over the net on this one and would just like to start over and say I have nothing to go on.)
Thanks
Wins
In Lotus Notes For Every User there is one nsf file will be created with the userid name as a file name. I want to Extract the Contact details using that nsf file Using Java Lotus Notes API.. (If my userid is user1 means the nsf file created in user1.nsf).. Is it possible to extract all the contacts of that user using the user's nsf file?
The tricky part here isn't reading the contact documents, it's finding the database itself. Depending on the installation, the contacts could be either on the server or local on their workstation.
If you're running from a server agent, you can only access the databases on the current server, or another server your credentials have access to. However, sometimes by default the user's contacts are put into a local database on their workstation and you can only reach them from code running in the user's context.
If that's the case, you have no choice but to find a way to run something on each user's workstation. You could
a) have the user replicate the names.nsf to the server, or
b) synchronize the contacts using the mail action.
For "a", you might send a special email with a LotusScript button in it to automate the replication. I've seen that method used in email migrations when using Quest software's migration tool, and it works well.
For "b", if you have a recent enough version of Notes you may follow these instructions to enabling the sychronize contacts task on the replicator. Ohterwise you'll need to instruct the users how to synchronize contacts using the actions menu. One the contacts are synchronized, a copy of the contact information will be contained in the user's mail file, which will be available on the mail server. You can then simply access the contacts view to read the documents.