Create folders for other users

I have a process that automatically generates folders based on events in the database using Advanced Queues. This process will work if I am creating folders for the user I am currently connected as.
What I can't seem to do is use the system admin account to create folders in other users home folders. I get insufficient privilege errors when I use findPublicObject to return the users home directory. This seems to happen because the users home folder has a private ACL, it works if I make the home folder public but I don't really want to do that.
Does anyone have a solution for this?

Sure, here are two suggestions.
1. If you want to create the folders in response to the AQ messages, and you want to do so independently of your application's normal security policies, you can use the system admin user to perform the operations, as long as you enable administration mode. Use LibrarySession.setAdministrationMode(true) to do this. Security will be bypassed until you turn this mode off.
2. If you want to make the changes within the concept of your application security model, then modify the model so that your system admin user has access to everything that it needs to be able to update or delete. You can do this by modifying the ACLs on the objects in question.

Similar Messages

  • Network folders for "other" user

    I have managed to set up a lab of iMacs (new) bound to AD via Windows Server. I had users make shortcuts to their 3 main network folders. Works fine. Users can't always get to "their" workstations though so I'd like to set up the "other" user to load those same three network folders on log in, or at least make it easy for them to do it once logged in. As is, the server shows up a finder window's left pane under "Shared" but they have to drill through the whole server to find their own folders.
    I'm just a teacher here, though I've made WAY more progress then the IT bozos that get paid for this, they have deferred to me (thank goodness).
    Any help much appreciated.

    I followed the suggestion of plugging the EX2 directly into the Windows8 PC, and it didn't work, in-fact the internet stopped working, until I reverted the connection and let windows fix the problem. I did make a minor step with homegroups, as I felt there was no where to turn but to try to get homegroups working once again.  It works, the homegroup sees the other computer, but every second, yes, every second, when you click on the homegroup icon in windows explorer, the window to the right changes from the name of the Windows 8 computer to immediately No other homegroups PC's are available right now, that happens every second, I can time it, it switches every 1-2 seconds between the name of the Windows 7 computer to the error I posted a few words back.  Sharing anything drive on the EX2 so it can be accessed on Windows8, same as it always has been, I don't see the drive on Windows8.  Mapping the drive on Windows7 works flawlessly, except, I have a few files that I know I didn't delete but are not showing up, and I have transcoded folders ? As well I can't share any folder on the EX2 because it's listed under the user nobody and it's restricted to that users control for which I don't have a password for ?

  • HT2470 Why won't Itunes store my music library in my User/Music Folder, if I select my user name as a storage location in Itunes, Itunes creates folders for artist name right in my user folder, instead of in my user/music folder

    Why won't Itunes store my music library in my User/Music Folder? 
    If I select my user name as a storage location in Itunes, Itunes creates folders for artist name right in my user folder, instead of in my user/music folder.  This gets especially annoying because if I tell Itunes to store my "media" in my user/music folder, Itunes will then create a folder named "music" in my "music" folder and will also create additional folders in my user/music folder location to store other non-music media in as well. It is very annoying to see this lack of affinity for folders between two Apple created programs.

    Help iTunes locate your media folder:
    No content shows up in iTunes after updating
    http://support.apple.com/kb/TS1967

  • I created a form with Single Choice fields, 4 days with times listed. But, I want the user to only be able to choose one time, and the time chosen to be unavailable for other users. How do I do this?

    I created a form with Single Choice fields, 4 days with times listed. But, I want the user to only be able to choose one time, and the time chosen to be unavailable for other users. How do I do this? I have 4 blocks of Single Choice fields in order for the summary page to give me each day in the final report. But, I need the user to be able to make a selection of any day and time and that apointment to no longer be available to future users when they log in. Plus, when the user clicks on the time, they are unable to change their mind and choose another time. Here's the link if you want to see what I'm talking about: 2015-2016 Workload Apportionment Review

    I'm afraid not.    It's not rocket science but you need to do some coding. 
    You'll need to find a script (php) and save it to your local site folder.  Then reference the script in your form's action attribute like so.
         <form action="path/form-to-email-script.php" >
    The input fields in your HTML form need to exactly match the script variables. 
    I'm  assuming you're hosted on a Linux server which uses PHP code.  Linux servers are also case sensitive, so upper case names are not the same as lower case names.  It's usually best to use all lower case names in your form and script to avoid confusion.
    Related Links:
    Formm@ailer PHP from DB Masters
    http://dbmasters.net/index.php?id=4
    Tectite
    http://www.tectite.com/formmailpage.php
    If this is all a bit beyond your skill set, look at:
    Wufoo.com (on-line form service)
    http://wufoo.com/
    Nancy O.

  • 3 user profiles on mac book pro.  cant see one account in time machine - has it backed up? and for other users ''no permission'' to open folders - i just want to know that stuff IS backed up (before attempting upgrade to lion)

    We have 3 user profiles on mac book pro.  want to upgrade to lion but want to be sure that all users are backed up to ext hard drive via Time Machine.  When I go into Time Machine - I cant find anywhere my user account (1 of the 3) - loads of photos and documents. For other user accounts - if i go to open a folder i cant ''no permission'' is the message.  All I want to be sure of is that there is a back up and for these 2 reasons I am far from sure.

    famfran wrote:
    When I go into Time Machine - I cant find anywhere my user account (1 of the 3) - loads of photos and documents.
    Be sure they're not excluded in Time Machine Preferences > Options.
    Also, if iPhoto is open while a backup is running, Time Machine may not be able to back up the changes in the iPhoto Library. It will "catch up" the next time, if it can.
    For other user accounts - if i go to open a folder i cant ''no permission'' is the message.  All I want to be sure of is that there is a back up and for these 2 reasons I am far from sure.
    That's correct; one user, even an Admin user, doesn't normally have access to another user's files.  You should see the same behavior if you try to look at their data on your Mac.
    Log on as the other users (or have them do it) to see their backups.

  • Create folders for upload.

    Dear All,
    I am a new to Java, and right now I am doing a project related to upload. So here is my question, my upload function is working fine except that right now I need to create different folders for different user. I have a database (mysql) to restore the username.
    My question is, I have the code below, and the funny thing is the filePath is not considered as a String; therefore, I cannot pass this String "filePath" to the MultipartRequest function to upload.
    Can anyone give suggestion on what's wrong. I really appreciate your help and this is Urgent.
    filefname, filelname, and tempuserid are variables with String type !!
    String filePath = "C:\\uploaddoc" + "\\" + filefname + "_"+ filelname +"_"+ tempuserid +" ";
    try {
    File userFile = new File(filePath);
    String parentDir = userFile.getParent();
    if(userFile.mkdir()){
    out.println("True Directory");
    String createpath = userFile.toString();
    out.println(createpath);
    MultipartRequest multi = new MultipartRequest(request, createpath, 5 * 1024 * 1024);
    catch (Exception e) {
    out.println("<PRE>");
    e.printStackTrace(out);
    out.println("</PRE>")
    Thank you.

    Something like this to get just the filename without the numbers. I don't quite have it but it's close. My regular expressions are not the best in the world obviously. But maybe someone else could throw a regex in there to clean it up. I'm guessing this is the way you would want to do it. Essentially you are compiling a regex to match the stuff you don't want, and then replacing the matched part of the string with nothing.
    import java.util.regex.*;
    public class Test{
         public static void main(String[] args){
              String string = "127.0.0.1_103_8_410_51sell_mon.doc";
              Pattern pattern = Pattern.compile("[0-9]");
              Matcher matcher = pattern.matcher(string);
              //int index = string.indexOf(matcher);
              String repl = null;
              repl = Pattern.compile("[0-9]").matcher(string).replaceAll("");
              System.out.println(repl);
    }

  • How to create folders for photo albums

    How to create folders for photo albums?

    More detail please?  Are you talking about photos synced to the Photos app in the iPad, or photos taken by the iPad camera, emailed to it or added by a camera kit? Have you checked the User Guide for this - availble through the IPad Manuals link at the very start of this forum?

  • Purchase iCloud storage for other users

    Can I buy iCloud storage for other users?
    Thank you.

    To the best of my knowledge, purchased storage stays with Apple id it is purchased to. To the best of my knowledge, it is unlike itunes store, and is not obligated to comply with local laws/regulations for downloads.
    I wish sometimes that people like you could create tips on do's and don'ts internationally, since we are all a bit shortsighted when it comes to Non our country situation. Unfortunately that tip here will die in the dark.
    BTW, I think your switching store may backfire for you, but I am sure you were informed of that on the phone.
    Question:
    Is it possible to pay in EU for iCloud accounts valid in China (RMB) and in the US (USD)
    They do not care( they will charge in acceptable units and card will take care of exchange rate), as long as card is accepted by corresponding store ( it is if it is on your file, and if not on file -you will find out as soon as you try to put it on it )
    As in the end they will end up back in the EU.
    What happens if you extend the storage in 1 country and then move to another country with a different currency and extend it again?
    I think I already answered that one.

  • How do I create folders for variuos apps i.e health, news etc.

    How do I create folders for variuos apps i.e health, news, sports etc.

    Tap and hold down on an app con until it begins to "wiggle", then drag one app icon on top of another app icon to create the folder. Move as many apps as you like into that folder. When you are done, tap the home button and the apps will stop wiggling.
    You can also name the folder whatever you want to in the white text field that will pop up when the folder is created.

  • IBot user not receiving dashboard alert/email not the case for other users

    Hi,
    I have a user who can create iBots and is able to deliver them to other users. However the user themselves cannot receive any iBot alerts on the dashboard or via email, even for iBots that they create themselves.
    I've checked their account setting and their email is configured, they are part of the correct user groups etc. This user has never been able to receive any iBot alerts or any iBot content.
    Can you let me know what else I can check as iBots are working for other users?
    Regards,
    AT

    Thanks Jay,
    They are part of the same group (in fact thety are part more groups as well) as other users for whom alerts and iBots work. They have the relevant priviliges under Delivers, their email is correct.
    They have access to the relevant Subject Area as it is ther user themselves who create the report and try to send it out using and iBot, other users receive the report apart from themselves. They themselves don't receive any alerts or emails.
    Rregards,
    AT

  • Just days ago, I downloaded and created folders for two batches of photos and now they are missing. They were not deleted by anyone, and even if they were, they were not found in my trash can. What happened? They were erased from my camera, so I am upset.

    Just days ago, I downloaded and created folders for 2 batches of photos I downloaded from my camera to iphotos but now both are missing.  They were not deleted and even if they were, were not found in my trashcan. I have looked through every folder and they are not there. Is there a bug that can get into iPhoto to do this? Is there a program Apple offers to retrieve lost photos? Thank you.

    debbie5891 wrote: ... They were not deleted and even if they were, were not found in my trashcan...
    How do you know they were not deleted? Is it possible that they were moved to the trash and the trash has been emptied, if not by you, perhaps by someone else?
    In the best case, you mean they were not deleted from your camera.  If so, it will be simple to merely download again from your camera after you have corrected any problem with your Mac or workflow.
    If you have a way to be certain that your two folders were not deleted from your Mac,  follow the directions provided by your Mac's Disk Utility to repair your Disk (not Disk Permissions.)  On more than one occasion, disk repair has restored the visibility of missing folders I knew I had not deleted.  If you have trouble with the process, post back which specific Mac OS version ( > About This Mac) you are using so we can offer specific help.
    It is also possible that the missing folders might be saved somewhere you do not expect them to be.
    It is also possible that they may merely be invisible and, thus, not showing in your Finder windows even after performing a Disk Repair.
    Here are some more ideas you can consider:
    Restart Mac and then look where you expect the folders to be.  They may be visible there now.
    If not, try a Spotlight search for the folder name(s) you used.  Spotlight may give you a list of places to look.  If you don't remember the folder name(s), try a search for the file type your camera uses for saved images.  My cameras save "jpg" files, but yours may save other image file types. 
    You can also open a finder window and use the window's search oval to search.  The method allows you to use the search "+" button to add invisible items via the "File Visibility"  choice.
    debbie5891 wrote:... I have looked through every folder and they are not there....
    If you are using any version of Mac OS X, I doubt this statement can be true.
    If you select your disk volume name (not the Media item) in the sidebar of your Mac's Disk Utility, you will see that the number of Folders and files on your disk is very large.  For example,I keep my startup disk small and write most of my files to other disks.  Even so, my startup disk contains more than 195,000 folders.
    If you mean you used some software to search each folder, please post back the name of the app you are using.
    debbie5891 wrote: ... Is there a bug that can get into iPhoto to do this? ...
    I have not had the problem you describe, nor have I heard of such an iPhoto Bug.
    I have used every version of iPhoto I have seen including the current new version: iPhoto '11 version 9.5 (902.7).  You can find the version you are using by executing the iPhoto > About iPhoto menu command and post it back here.
    debbie5891 wrote:... Is there a program Apple offers to retrieve lost photos? ...
    I am not aware of any Apple apps that work specifically on photo files.  If you know the pathname to the lost files, and if you are comfortable with Unix commands, you might be able to use your Mac's Terminal utility to retrieve at least some of your images.  However, it will be MUCH simpler to merely download another copy from your camera.
    You can search the Mac App Store for "unerase" to find several apps that can unerase files, including deleted photo files, in certain circumstances even after the trash has been emptied.  To determine whether one or more of them may meet your needs, see their product info and reviews for specifics about each one.
    debbie5891 wrote:...Thank you.
    You're most welcome.
    If you need to post back for more information, please provide specifics on your Mac OS, iPhoto version, which of the suggestions offered here you have tried, and any details not already provided about the problem status.
    Message was edited by: EZ Jim
    Mac OSX 10.9

  • Unable to create folders for apps on springboard

    I was successful at creating folders for one of my sons on his Ipod Touch, but my other son's Ipod won't allow me to do it. Is there a setting that needs to be turned on or off or what? With my sucessful situation, I simply held my finger on one of the apps on the springboard until they all got wiggly, and, therefore, moveable. I drag one app on top of another and was able to create a folder for the 2 (i.e., zombie games). I did the same thing on my other son's Ipod and the apps would not go on top of each other, would simply replace each other in the order they were on the springboard. I hope someone can help...

    Do both iPods have iOS 4 installed?

  • SubArea not visible for other users in ESS

    Hi All,
    I have created a new subarea (having few services) and assigned it to a Benefits and payments Area.
    Now the issue is its only displaying to Administrator Role not for other users.
    if iam giving SAP_ALL  to other user then we are able to see this.
    Please let me know if iam missing anything .
    Thanks,
    Santosh

    to the role assigned to the user, you need to select end user visible in the role.
    note Number              939412
    ssign the following permissions to an End user.
       o  Goto Content Administrator ->Portal content ->Content Provided by
          SAP ->End User Content -> Employee Self Service
       o  Right click on  Employee Self Service. select open-> Permissions
       o  Assign read authorization to default user group "everyone".
       o  Check the 'EndUser' checkbox
       o  Save the Assigned permissions
       o  Goto System administration -> Permissions.
                                                                    Page 2
       o  Goto  Portal content ->Content Provided by SAP ->srvconfig
       o  Assign read authorization to default user group "everyone".
       o  Check the 'EndUser' checkbox
       o  Save the Assigned permissions.

  • How to create accounts for remote users in 1841

    Hi,
    I was wondering how can i create accounts for remote users to be able to vpn please ? I have setup the vpn server successfully.
    Regard,

    Hello.
    I believe that you can try this:
    Router# configure terminal
    Router (config)# password encryption aes
    Router (config)# crypto ipsec client ezvpn ezvpn1
    Router (config-crypto-ezvpn)# username server_1 password 0 blue
    if you are using easy vpn.
    from: http://cisco.com/en/US/products/ps6350/products_configuration_guide_chapter09186a0080455b7d.html

  • How to create gpo for all users in all ou?????

    hello,plz help me.i want to create gpo for all users in all ou.but i dont want that gpo to do in domain????

    Can you elaborate what you mean by "but i dont want that gpo to do in domain"?
    In terms of applying it to all users, that's simple enough, you can simply leave the GPO's security filtering with its default setting as "Authenticated Users" which then apply to everyone.
    In terms of it applying to all OUs, you only have two options.
    1) Create the GPO and link it to the root of your domain, so it then applies to the entire domain and all the OUs within it.
    2) Create the GPO, but instead link it to each OU that you want it to apply to. You can apply one GPO to as many OUs as you want, simply right click on the OU and select "Link an Existing GPO...". It's then not applied to the root of the domain, only the
    OUs, but any changes you make to the GPO are applied to all the OUs that you've linked it to (rather than having a separate GPO for each of them).

Maybe you are looking for