Deleting all user level customizations

In our WebCenter Portal 11g, PS5 with latest bundle patch, we have quite a few user-level customizations stored in MDS.
However, we have just changed our user base (different LDAP), so many of the users are no longer valid.
Does anyone know of a nifty way to delete all the existing user level customizations (and whatever else is stored in MDS on the user level)?

Hi Jaap.
I think that you will need to code some Java using MDS API to achieve your purpose.
I though in a solution based on next ideas:
1) Analyze metadata paths used by WebCenter in adf-config.xml (It indicates root path folders where apply customizations).
You have to take entries that are using oracle.webcenter.webcenterapp.internal.metadata.WebCenterUserCC customization class
2) Use MDS API to go every possible /cust/user folder of preconfigured paths of MDS and remove it. You can decompile previous class to check how and where is storing User customization class.
However the approach couldn't be good. Why?.
1) If you download and double check MDS paths (where user customizations are) always is using user name encrypted and then isn't easy generate MDS path to remove user customizations. Should investigate where and how is encrypting user when storing.
2) You have to know what users are obsolete because you have to generate the path based on that userID (encrypted).
It's only an idea in my mind. Don't know if exists better approach or something OOTB to delete User customization of obsolete users.
I hope this help you.
Regards.

Similar Messages

  • Delete all users except one?

    hi there,
    I'm in a lab environment where I need to be able to delete all user accounts except "Administrator" on remote machines from ARD that accumulate from unsuccessful syncs, etc.
    Is it possible to run a selective rm -rf command that will do this? I've googled, but the solutions don't seem to work for me.
    Thanks!

    I found this article: http://snippets.dzone.com/posts/show/3908
    It says to use this command:
    find . ! -name "*.ogg" -exec rm -f {} \;
    Adapted for my purposes:
    find . ! -name "administrator" -exec rm -rf {} \;
    I tried this on a folder called "test" on my local machine with folders named 1, 2, and 3 (keeping 2) and it worked, but I want to make sure this is a good idea before I push it out via ARD to 90 workstations. Thanks!

  • Using Powershell to delete all users from the Portal

    Summary
    This script will delete all users from the Portal except for Administrator and the Built-In Sync account.
    Based on Markus's "Delete a User" script.
    Useful when developing your system if you want to quickly clear out the data and start again.
    set-variable -name URI -value "http://localhost:5725/resourcemanagementservice' " -option constant
    function DeleteObject
    PARAM($objectType, $objectId)
    END
    $importObject = New-Object Microsoft.ResourceManagement.Automation.ObjectModel.ImportObject
    $importObject.ObjectType = $objectType
    $importObject.TargetObjectIdentifier = $objectId
    $importObject.SourceObjectIdentifier = $objectId
    $importObject.State = 2
    $importObject | Import-FIMConfig -uri $URI
    if(@(get-pssnapin | where-object {$_.Name -eq "FIMAutomation"} ).count -eq 0) {add-pssnapin FIMAutomation}
    $allobjects = export-fimconfig -uri $URI `
    –onlyBaseResources `
    -customconfig "/Person"
    $allobjects | Foreach-Object {
    $displayName = $_.ResourceManagementObject.ResourceManagementAttributes | `
    Where-Object {$_.AttributeName -eq "DisplayName"}
    if([string]::Compare($displayName.Value, "Administrator", $True) -eq 0)
    {write-host "Administrator NOT deleted"}
    elseif([string]::Compare($displayName.Value, "Built-in Synchronization Account", $True) -eq 0)
    {write-host "Built-in Synchronization Account NOT deleted"}
    else {
    $objectId = (($_.ResourceManagementObject.ObjectIdentifier).split(":"))[2]
    DeleteObject -objectType "Person" `
    -objectId $objectId
    write-host "`nObject deleted`n" $displayName.Value }
    Go to the FIM ScriptBox
    http://www.wapshere.com/missmiis

    The DeleteObject function opens and closes a connection for each object.  This approach is faster:
    http://social.technet.microsoft.com/wiki/contents/articles/23570.how-to-use-powershell-to-delete-fim-users-that-have-a-null-attribute-name.aspx
    Mike Crowley | MVP
    My Blog --
    Planet Technologies

  • Can i delete all users in one go?

    I am using SAP authentication. Afer defining my Entitlement system, under options i did not chose to Import users for the imported role.
    But All users for the imported rloe are imported. i dont want all users. It is painful as well to delete each user at a time for 500 users. How can i delete all users in a sinlge go?
    Please help
    --Krish

    This may ork: Try to set the Force user synchronization option under CMC->Authentication->SAP->Options and remove the role temporarily.
    Such a behaviour  can be xeplained only through the setting of the option Automatically import users under CMC->Authentication->SAP->Options . Even for a short period of time.
    You MUST create a role that contains only the SAP users you want to accept in your BOBJ system and import this role in the CMC
    Regards,
    Stratos

  • How to delete all users quickly in EOP

    I need to delete all user inside my standalone EOP. I need to remove the domains but it won't let me since there are users in the domain. It will only allow 20 at a time to be deleted. I am sure there is a PowerShell way but I need this done ASAP.
    Thanks,
    Mike
    MRR

    As it ended up, I didn't need to because Microsoft resolved the issue after telling me at first they couldn't. :-) I am a little amazed no one responded to this. Maybe it is one of those so simple things they think we are morons for asking. :-) 
    MRR

  • Synchronizing User-level Customization to Seed-level customization

    Let's say I created a seeded customization layer called "site." And then I have a user called "X". Is it possible to programmatically synchronize(e.g. copy) X's user customizations into the "site" seed-level customization? Because from what I could glean from the customization xmls in the MAR files created in my integrated weblogic deployments, the customization metadata for user and seeded customization are nearly identical. It seems that the layer is identified by the folder structure(at least on file based MDS). So I would guess that it is possible to just dump one customization layer's data into another.
    Basically, I'd like to find out if the current MDS API exposed by ADF has the necessary exposed methods required to accomplish this.

    Hi,
    the design time at runtime APIs for MDS in ADF are not yet available for public use (which also means that the APIs for this are not documented)
    Frank

  • Deleting all users WER (Windows error reporting) files

    Hi,
    I am using windows server 2008 R2 (Standard), I have created around 120 users in this server, yesterday i found that my C drive is full, after checking all i found around 30GB is used for Windows error reporting files, Please help me to delete This files
    Please, i cant delete all files one by one...

    For what it's worth, this is the script I use to find Windows Error Reports that have not been sent, and delete archived Windows Error Reports:
    It's not currently doing per-user error reports, as we don't have people logging into the servers, typically.
    Karl
    <#
    .SYNOPSIS
    Find-WER - Finds Windows Error Reports that have not been sent to Microsoft.
    .DESCRIPTION
    This script finds Windows Error Reports that have not been sent to Microsoft.
    This script also deletes archived Windows Error Reports.
    .NOTES
    File Name: Find-WER.ps1
    Author: Karl Mitschke
    Requires: Powershell V2
    Created: 12/16/2011
    .EXAMPLE
    C:\PS>.\Find-Wer.ps1
    Description
    Finds Windows Error Reports on the local computer.
    .EXAMPLE
    C:\PS>.\Find-WER -Computer Exch2010
    Description
    Finds Windows Error Reports on the computer Exch2010.
    .EXAMPLE
    C:\PS> Get-ExchangeServer | Find-WER
    Description
    Finds Windows Error Reports on all Exchange servers.
    .EXAMPLE
    C:\PS> $cred = Get-Credential -Credential mitschke\karlm
    C:\PS>.\Find-WER.ps1 -ComputerName (Get-Content -Path ..\Servers.txt) -Credential $cred
    Description
    Finds Windows Error Reports on all servers in the file Servers.txt.
    .PARAMETER ComputerName
    The Computer(s) to search for Windows Error Reports. If not specified, defaults to the local computer.
    .PARAMETER Credential
    The Credential to use. If not specified, runs under the current security context.
    #>
    [CmdletBinding(SupportsShouldProcess=$true, ConfirmImpact='Medium')]
    param (
    [parameter(
    Position = 1,
    Mandatory=$false,
    ValueFromPipeline=$true)
    [String[]]$ComputerName=$Env:ComputerName,
    [Parameter(
    Position = 2,
    Mandatory = $false,
    ValueFromPipeline=$false)
    $Credential
    BEGIN{
    #region PSBoundParameters modification
    if ($Credential -ne $null -and $Credential.GetType().Name -eq "String"){
    $PSBoundParameters.Remove("Credential") | Out-Null
    $PSBoundParameters.Add("Credential", (Get-Credential -Credential $Credential))
    $PSBoundParameters.Remove("WhatIf") | Out-Null
    #endregion
    $ReportPath = "C:\\ProgramData\\Microsoft\\Windows\\WER\\ReportQueue"
    $ArchivePath = "C:\\ProgramData\\Microsoft\\Windows\\WER\\ReportArchive"
    $FoundReport = $false
    $DeleteFailure = $false
    PROCESS {
    $PSBoundParameters.Remove("ComputerName") | Out-Null
    foreach ($StrComputer in $ComputerName){
    $Count = @((Get-WmiObject Win32_Directory -Filter "Name= '$ReportPath'" -ComputerName $StrComputer @PSBoundParameters).GetRelated('Win32_directory') |? {$_.name -match $ReportPath}).Count
    if ($Count -gt 0){
    Write-Warning "There are $Count Windows Error Reports on $StrComputer."
    $FoundReport = $true
    Else{
    Write-Output "There are no Windows Error Reports on $StrComputer."
    $Archives = @((Get-WmiObject Win32_Directory -Filter "Name= '$ArchivePath'" -ComputerName $StrComputer @PSBoundParameters).GetRelated('Win32_directory') |? {$_.name -match $ArchivePath})
    if ($Archives.Count -gt 0){
    Write-Output "Deleting Archived Windows Error Reports on $StrComputer."
    foreach ($Folder in $Archives)
    if ($pscmdlet.ShouldProcess($($StrComputer), "Deleting '$($folder.name.split("\")[-1])'")){
    $Return = $Folder.Delete()
    if ($Return.ReturnValue -ne 0){
    $DeleteFailure = $true
    if ($DeleteFailure -eq $true){
    Write-Warning "Could not delete all Archived Windows Error Reports on $StrComputer."
    END {
    If ($FoundReport){
    Write-Warning "Remember to run the Action items on the servers."
    else{
    Write-Output "There are no Windows Error Reports."
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book:
    Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

  • How to delete all users (objects) in 9i database?

    Hi friends:
    I did a full database exp/imp for a dev database, before imp, I need to delete all objects in the old dev database, I know delete one user is
    drop user user_name cascade;
    how about all users (objects)???? in 9i database
    thank you very much

    Hi,
    I will use
    select ' drop user ' ||username|| ' cascade;' from all_users where username not
    in ('SYS','SYSTEM', ‘DBSNMP’);
    Is there any other users I don't need to drop off besides the above three ones?
    thank you very much

  • Mavericks upgrade from Mountain Lion deletes all user accounts

    This is a lesson for upgrading too early (and too eagerly).
    Today I tried the Mavericks upgrade from Mountain Lion on my 2007 Macbook Pro, after going through all the pre-installation/pre-upgrade checklists.
    I don't think I have gone from a very high to a down low in such a short space of time.  I really wanted to move on from Mountain Lion and when the installer finished the upgrade to Mavericks and re-started my MBP, I was super excited.  When the restart completed and I was presented with the login prompt, I tried entering my user name and password.  First time, it shaked on the password... OK, you'd think that is a typo.  Re-entering the password... same thing.
    You can imagine what ensued.  After entering my password v-e-r-y slowly many times, I started realising that something went very VERY wrong.
    Just for information, I used two different user accounts on my MBP under Mountain Lion.  The one account had administrative priviledges and was only used for installing applications and a few other administrative tasks.  Then I have a second personal account, which does not have administrative priviledges and is the account I use daily for Mail, Safari, iTunes, programming etc.
    None of those accounts worked under Mountain Lion.  Basically, there is no way in.
    I then proceeded to boot with the startup option Cmd + S (command-line access).  Once that was completed, I was in as root and checked the /etc/passwd.  None of the user accounts were there.  I was only able to find two user accounts: root and nobody; and a long list of user account that started with an underscore (I think these are some sort of esoteric user accounts).  So, it appears that the Mavericks upgrade did not accurately bring over the user account information from my Mountail Lion installation.
    Then, I went into the /Users directory and there I could see the home directories for all the users as they were defined under Mountain Lion.  The contents were intact too.
    It seems to me that the Mavericks upgrade from my Mountain Lion forgot to bring over the user accounts but it did preserve the contents of all the users' home directories.
    Unless anyone can spot some sort of user error here (please let me know), I am heading back to Mountain Lion pretty swiftly.  Otherwise, I suspect there is a bug in the Mavericks installer.
    Any assistance is appreciated.

    The reason this occurred is a mystery and has not been commonly reported. Consider the following. It may or may not help. You should probably print these instructions before proceeding.
    Boot Single User mode again and do the following:
    (You can skip the first step. It will check your boot volume for errors and correct what it can. If there were errors the installer should not have proceeded, but the possibility exists that directory corruption may have occurred during installation. That seems unlikely to me but could explain what went wrong.)
    In Single User Mode:
    At the :/ root# prompt, type fsck -fy and press Return or Enter. It will take a few moments to complete. If you are concerned that nothing is happening just press the Return key until you see the :/ root# prompt again.
    Once the disk check is complete and the prompt returns, type mount -uw / and press Return / Enter.
    Type launchctl load /System/Library/LaunchDaemons/com.apple.opendirectoryd.plist and press Enter. If you get an error message you may ignore it.
    Type ls /Users and press Enter. All of the usernames on the computer will be listed, which is helpful if you don’t know or remember what these are.
    Type dscl . passwd /Users/username password while replacing username with one of the users displayed in the previous step and replacing password with the new password of your choice. Press Enter. You will likely get an error message about a file or directory not being found. You may ignore this.
    Type reboot and press Enter.

  • Server 10.5.7 upgrade deleted all user and group Info -- Receiving error -1

    After upgrading our Dual 2.0 G5 server that was running 10.5.6 to 10.5.7 all groups and user information lost access. In addition when starting the workgroup manager error -14008 appears. Also when we look into the console log the following shows up
    ------------com.apple.launchd[1] (edu.mit.kadmind) Throttling respawn: Will start in 10 seconds
    over and over
    Any help would be greatly appreciated.

    I looked into A&I more, maybe it's not as nuclear as I thought. I presumed it meant I needed to reinstall all non-apple Apps, which means digging up disks and codes, none of which I have here. I'm away from home for another 4 weeks, which means doing that is difficult.
    Being away is also why my back-up is a little out of date, I didn't bring the time machine drive for that MBP with me. I had it shipped to me as soon as I had problems, but the back-up I'd have to roll back to is now 1-2 weeks old and might still have the funky user:group problems since my timezone problems began before the 10.5.7 update.
    I think DiskWarrior may of finally repaired the user:group issues. Not 100% sure but it's looking better. I just noticed that the primary user is admin but User is 502 and Group is 502. Whereas my secondary user account (also Admin) on that MBP User is 501 and Group is 20. My recollection is 20 is staff and both users groups should be 20.
    I'll look into A&I more, probably do it when I get home.
    Thanks.
    Message was edited by: jb510

  • How to delete ALL accounts in preparation to sell computer?

    I'm selling a Mac (five of 'em actually), and after doing a fresh OS (Tiger v10.4.3) install, followed by all system and app updates, I now want to delete all user accounts and traces thereof -- after I have cash in hand, of course. This so the Apple Setup Assistant starts on boot, and the buyer gets a fresh machine, including the lovely "Welcome to Apple" video/music extravaganza.
    I know I've read instructions for doing this somewhere, but can now find no trace of them. Any help would be appreciated.
    iMac iSight 20"   Mac OS X (10.4.3)  

    From a note at MacOSXHints on how to "Make OS X re-run the initial setup assistant":
    1.Boot into single-user mode (command-S during startup)
    2. Once the command-line prompt appears, type the following:
    mount -uw /
    cd /private/var/db/netinfo
    mv local.nidb local.old
    rm ../.AppleSetupDone
    exit
    When you hit RETURN after typing exit, OS X will restart and the setup assistant will launch automatically. So if you've somehow messed up your primary OS X user, this is a good fix that may get you up and running again, even if re-running the OS X installer does not.
    Using that as a basis, then in your case, since you've installed the OS, you should only have one user, boot each machine with a bootable external FWHD (or mount each to a good machine in TDM), launch the Terminal app, and then do these commands:
    sudo cd /Volumes/<machine's name>/private/var/db/netinfo/
    sudo mv local.nidb local.nidb.old
    sudo cd /Volumes/<machine's name>/
    sudo rm -R /Users/<username>
    sudo rm ../.AppleSetupDone
    G4 450 MP Gigabit   Mac OS X (10.4.3)  

  • Emptying all users' temp folders

    Hello everyone
              Right now we're having problem with low disk space on Terminal Server. Actually we have applications which
    help us to get rid of all temp files easily, I mean without going to C:\Users\USERNAME\AppData\Local\Temp and deleting files manually These are
    Profiles Scanner 
    ICSweep
              But these applications cannot remove any item just because I do not have permission to Edit this folder
    inspite of fact I’m belonging to Domain Admins group. I can break security of a userfolder, but it is quite time consuming. There're about 700+ userfolders in  C:\Users\ folder. Moreover, we have a lots of trojan name "DWH****" (**** is
    random number, like 3D25, 5C68). And this file seems duplicate itself into different name and that's why we have low disk space error on our Terminal Server.
              So my question is How do I empty C:\Users\USERNAME\AppData\Local\Temp folder without changing the security
    on userfolders? I tried to empty through GPO (Computer Configuration > Windows Settings > Folders) but I couldn’t get this work.
              Thanks in advance

    Hi,
    As per my research, you can try some script to delete all users’ temporary files\folders. For that providing you script link which you can use and modify as per your requirement. Please refer below article for detail information.
    1.  Delete Temp files
    2.  What is the Command to Delete Temp files for all User profiles in a Local
    3.  Use PowerShell to Clean Out Temp Folders
    Hope it helps!
    Thanks,
    Dharmesh

  • How to set users level security profiles and auditing?

    hi,
    We are using EBS 12( 12.0.6 ) with database 10g (10.2.0.3) on Linux redhat 4.
    I want to set the all user level and site level security profiles like user login attempts, password attempts, case sensitivity, and all these
    infos and attempts should be audit.
    Please also explain the empact of audit on running system?
    Thx

    I want to set the all user level and site level security profiles like user login attempts, password attempts, case sensitivity, and all these
    infos and attempts should be audit. https://forums.oracle.com/forums/search.jspa?threadID=&q=Profile+AND+Option+AND+API&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    https://forums.oracle.com/forums/search.jspa?threadID=&q=Profile+AND+Option+AND+Audit&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Please also explain the empact of audit on running system?https://forums.oracle.com/forums/search.jspa?threadID=&q=Auditing+AND+FND+AND+Profile+AND+Option&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Try this in a TEST instance before you promote it to Production.
    You will need to bounce the application services and enforce the users to sign off/on after setting those profile options.
    Thanks,
    Hussein

  • How to delete last user session from backend SQL query?

    Sometimes user session gets closed between some work by any reason.
    When next time that user logs to P6, he gets some error or particular functionaly dosen't work for that user or system hangs.
    In that case if i decided to clear last session history of that user from database, how to write SQL query?
    I don't want to delete all user sessions from table USESSION and USESSAUD, i simply want to delete last user session of particular user (E.g XYZ).

    I am quoting this from MOS Doc Id "Why would multiple session records be present in the User Sessions screen in P6 Web, and why might some of them have different IP addresses? (Doc ID 1600172.1)"
    Multiple sessions show up for users since different sections of P6 Web have their own sessions associated with them. If a user is authorized to use multiple areas of the software they will have multiple sessions each time they log in. Additionally, if users are closing their browsers before logging out of P6 Web Access you might see some past sessions still appearing in the list. These will eventually be cleared out by background jobs, however you can also reset the sessions in the software by clicking the "Reset User" link (Administer > User Sessions > Manage User Sessions), or by choosing the "Reset All Users" link (Administer > User Sessions > Manage User Sessions) to do this for all past sessions.
    Multiple IP addresses for sessions can happen when a user logs in from different machines. For example, a person may login at their desk, but then go to a colleagues workstation to discuss a project, and log in from there. Doing so will leave them with multiple IP addresses in the session records.
    Hope this helps
    Regards,
    Sachin Gupta

  • HOW TO DELETE ALL INFO OBJECTS IN A SYSTEM

    HI! gurus,
    I want to know how to delete all user created info objects in my laptop.the situation is while practicing SAP in my laptop ...creation of user info objects occured heavily resulting in degrading the system performance.so is there any procedure to delete all info objects(user created)making a system a newly SAP installed one....please help me....
    Regards
    Ravikanth Pinipolu

    Hi Ravi,
    u can try it manually to delete the User defined objects..
    or u can use the prg: RSDG_IOBJ_DELETE and in that u can give some selection of objects for the deletion..
    Give it a try..
    Thanks
    Hope this helps

Maybe you are looking for

  • Is anyone else having problems playing rental movies to Apple TV

    When I play a rented movie to the Apple TV it gets caught in the Loading loop and won't play, all purchased series and movies run OK. This started ever since iTunes upgraded.

  • Store purchases wont play on iPod

    I just purchased an album from the iTunes store. I am able to play the tracks on my PC directly from my hard drive and I am able to play the tracks from my iPod through iTunes on my PC. When I disconnect my iPod and try to play the album directly fro

  • Leading zeros in batch numbers

    Is it possible to have leading zeros in batch numbers, meaning that batch 123 is different than batch 0123?

  • WD(ABAP) - Oncheck Event by Interactive Form

    Accessing Adobe Lifecycle Designer through Web Dynpro workplace will provide you with a set of fields in a special library called "Web Dynpro", in which I find some interesting element. Most of them are mentioned in the following place: <a href="http

  • How do you end date an objective in table per_objectives_library?

    Hi, I would like to find out how to end date an objective in table per_objectives_library. I have checked HR_OBJECTIVES_API.update_objective but there is parameters there for Valid_from and Valid_to dates. Is there any other API Package that can be u