Query to List members(users) of a WorkSpace

Has anyone created a sql query that shows the members (users) of a WorkSpace ?
I have a business requirement to show which WorkSpaces is assigned to a specific user.

I found the soluction to my Problem.
Assumption: Connect to the Content DB Database or the MRDB
01). Find the user exact name:
     select unique MEMBERDISPLAYNAME from cwsys.cw$workspace_members where upper(MEMBERDISPLAYNAME) like '%SMITH%';
     Output
     ===============
     MEMBERDISPLAYNAME
     John SMith
02). Extract the Workspaces they beling to
     set linesize 9999
     set pagesize 200
     column MEMBERDISPLAYNAME format a60
     column WORKSPACENAME format a60
     select b.MEMBERDISPLAYNAME
     from CWSYS.CW_WORKSPACES_TABLE a,
          cwsys.cw$workspace_members b
     where a.WORKSPACEID = b.WORKSPACEID and
b.MEMBERDISPLAYNAME = 'John SMith'
     order by 1

Similar Messages

  • Query to find the list of users having access to a particular scenario

    Hi,
    I am learning Hyperion Planning 9.2 x version. I wanted to know the query to find the list of users having access to Plan Iteration - 1 scenarion.
    As I am new to Hyperion Essbase and Hyperion Planning, I am assuming these ideas work out to get the desired result.
    1) As Hyperion Planning uses Relational DB to store the User Security information, we can query the list of users who is having access to Plan Iteration - 1 Scenario.
    I am not sure if this solution works. Please correct me If I am wrong.
    2) We can also query from the essbase editor to find out who all having access to this scenario.
    If the above is correct, can you please provide me the query.
    I am really need of this and I will be happy if any one provide the solution.
    Thanks & Regards,
    Upendra. Bestha

    Hi,
    If you are looking for some SQL to retrieve the access rights by member then you can use something like (SQL Server code though can easily be modified for Oracle)
    SELECT usr.object_name as Username,mem.object_name as Member,
    'Access Rights' = CASE acc.access_mode
    WHEN -1 THEN 'None'
    WHEN 1 THEN 'Read'
    WHEN 2 THEN 'Write'
    WHEN 3 THEN 'Write'
    ELSE 'Unknown' END,
    'Relation' = CASE acc.flags
    WHEN 0 THEN 'Member'
    WHEN 5 THEN 'Children'
    WHEN 6 THEN 'Children (inclusive)'
    WHEN 8 THEN 'Descendants'
    WHEN 9 THEN 'Descendants (inclusive)'
    ELSE 'Unknown' END
    FROM
    hsp_access_control acc, hsp_object mem, hsp_object usr
    WHERE acc.object_id = mem.object_id
    AND acc.user_id = usr.object_id
    AND mem.object_name = 'Plan Iteration - 1'
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Query list of users from LDAP

    Hi Gurus,
    I am trying to programatically query the list of users belonging to a particular user-group, from LDAP.
    LDAP is deployed on Weblogic as a 'provider'.
    I have the following details of the LDAP instance - host:port, security principal (CN=aaa,OU=bbb,OU=ccc,DC=ddd,DC=com), LDAP password (credential), User Base DN.
    I tried the following using BPEL:
    <sequence name="main">
        <!-- Receive input from requestor. (Note: This maps to operation defined in BPELProcess1.wsdl) -->
        <receive name="receiveInput" partnerLink="bpelprocess1_client" portType="client:BPELProcess1" operation="process" variable="inputVariable" createInstance="yes"/>
        <!-- Generate reply to synchronous request -->
        <assign name="Assign1">
          <copy>
            <from>ora:getContentAsString(ldap:listUsers('people','ou=people'))</from>
            <to>$outputVariable.payload/client:result</to>
          </copy>
        </assign>
        <reply name="replyOutput" partnerLink="bpelprocess1_client" portType="client:BPELProcess1" operation="process" variable="outputVariable"/>
      </sequence>
    </process>
    and following is the content of the directories.xml that I have created:
    <?xml version="1.0" ?>
    <directories>
    <directory name='people'>
    <property name="java.naming.provider.url">ldap://<host>:<port></property>
    <property
    name="java.naming.factory.initial">com.sun.jndi.ldap.LdapCtxFactory</property>
    <property name="java.naming.security.principal">CN=aaa,OU=bbb,OU=ccc,DC=ddd,DC=com</property>
    <property name="java.naming.security.authentication">simple</property>
    <property name="java.naming.security.credentials">password</property>
    <property name="entryDN">User Base DN</property>
    </directory>
    </directories>
    When I run this BPEL process, I get a blank value on my output variable -
    <outputVariable>
    <part  name="payload">
    <processResponse>
    <result><users xmlns="http://schemas.oracle.com/bpel/ldap"/></result>  
    </processResponse>
    </part>
    </outputVariable>
    Is there something I am missing here?
    Regards,
    Arindam

    slight change in my approach here:
    I would like to use welogic provider to connect to this LDAP
    so... instead of MyProgram --> LDAP, it should now be MyProgram --> Weblogic/SecurityRealms/myrealm/Providers/myAuthenticator --> LDAP
    in this guess, i wont be using LDAP connection details, instead the weblogic host/port and Authenticator name should be sufficient
    How can I programatically query the list of users using this approach?

  • How to check a list of users against AD if they exist

    Hi Scripting Guys,
    I have a powershell script that allows me to query a list of users against AD, and if they exist, it will write their details into a new file.
    I want to adapt this script so that it will still do the same, but if the user does NOT exist anymore, write a line such as "<User-ID> does not exist in AD".
    Here's the code I have so far:
    Import-Module ActiveDirectory
    $UserList = get-content C:\temp\checkAD\Accounts.txt
    Foreach ($Item in $UserList) {
    Get-aduser -filter {samAccountName -eq $Item} | Out-File C:\temp\checkAD\existingAccounts.txt -encoding default -append
    Does anybody know how to achieve that?
    Thanks and best regards,
    Cap'

    Function LDAP_query{
    param
    [Parameter( Mandatory=$true )][String[]]$cID
    # change the DCs to your domain information
    $root = [ADSI]"GC://dc=$($cID[0]),dc=company,dc=com"
    $searcher = new-object System.DirectoryServices.DirectorySearcher($root)
    $searcher.filter = "(sAMAccountName=$($cID[1]))"
    #running LDAP query
    $cAcc = $searcher.findall()
    if($cAcc.Count -ne 0){
    return ($cAcc[0].Properties["samaccountname"][0])
    else{
    Write-Host -BackgroundColor Black -ForegroundColor Red "Error with account:" -NoNewline
    Write-Host " $($cID[0])\$($cID[1])"
    return ""
    The function is waiting for a string array: [domain][user id]
    Return the string of the User ID if valid, return an empty string if not a valid ID

  • Sql Query To Find Out list of users not having a particular resource provisioned

    Hi,
    I know the query for all the resources tagged to user with their account status.
    Can anybody help me with a query to fetch just the user details for the following scenario:
    1)Active users having  having no instance of a particular resource.
    Condition: Exclude Active users having one provisioned instance of the resource and fetch user details having no provisioned account for that resource .
    it is just for report purposes.So format is not of concern.Just need the list of users not having a single provisioned account for a particular resource.

    Hi,
    Please try the below query :
    select distinct usr.usr_login from USR,OIU where USR.USR_KEY not in (select OIU.USR_KEY from OIU)
    and OIU.APP_INSTANCE_KEY= (select APP_INSTANCE_KEY from APP_INSTANCE where APP_INSTANCE_NAME='ADResource');
    Change the app instance name acording to you need.
    -Saurabh

  • Query to find out the list of user who have delete access

    Hi,
    I need a query to find out the list of users who have delete access on perticular folder/universe/ reports  in infoview.
    Please advice.
    Regards,
    Neo.

    orton607 wrote:
    thanks for replying guys. But the thing is i am using dynamic sql execute immediate in my package, so i want those tables also and the schema name.
    thanks,
    ortonThis is not possible. The best you could do is to have a good guess.
    Or how would you parse some dynamic statement as this:
       v_suffix := 'loyees';
       v_sql := 'Select count(*) from (select ''nonsense'' col1 from emp'||v_suffix||') where col1 = ''Y'''';
       execute_immediate(v_sql);
    ...What is the table name? How do you want to parse that?
    Better rewrite all dynamic SQL statements into non dynamic ones. Or do the source control logic for those dynamic parts in an extra module. For example implement your own dependency table and force every developer to add there all dynamic parts.

  • CAML query to return multi-user field from a Sharepoint list

    I have a list in SharePoint that contains a field of type Multi-User which can contain 1 to many user names. I'm having trouble returning a string containing anything when more then 1 user is selected in the field.  Can someone point me in the right
    direction?

    You can't query on a Mutli-user field using a "contains" filter - using the GUI. 
    However, you can change the CAML for the query using SharePoint Designer.
    E.g. In my view, I want to return a list of documents where the Contributor field (a multi-user field) contains the user "Warner".
    In the GUI, I create the view, but I'm not allowed to use the filter "Contains", so I use "Equals" instead. Of this won't work unless the only user is "Warner". So I open SharePoint Designer, and I change the query used on that view from Eq to Contains.
    Original query:
    <View Name="{D0E65C04-0A53-4C26-9004-68B3CFF1F11A}" MobileView="TRUE" Type="HTML" DisplayName="Warners Documents" Url="/Shared Documents/Forms/Warners Documents.aspx" Level="1" BaseViewID="1" ContentTypeID="0x" ImageUrl="/_layouts/15/images/dlicon.png?rev=23" >
    <Query>
    <Where>
    <Eq>
    <FieldRef Name="Contributors"/>
    <Value Type="Text">Warner</Value>
    </Eq>
    </Where>
    </Query>
    <ViewFields>
    <FieldRef Name="DocIcon"/>
    <FieldRef Name="LinkFilename"/>
    <FieldRef Name="Modified"/>
    <FieldRef Name="Editor"/>
    <FieldRef Name="Contributors"/>
    </ViewFields>
    <RowLimit Paged="TRUE">30</RowLimit>
    <Aggregations Value="Off"/>
    <JSLink>clienttemplates.js</JSLink>
    <XslLink Default="TRUE">main.xsl</XslLink>
    <Toolbar Type="Standard"/>
    </View>
    New Query:
    <View Name="{D0E65C04-0A53-4C26-9004-68B3CFF1F11A}" MobileView="TRUE" Type="HTML" DisplayName="Warners Documents" Url="/Shared Documents/Forms/Warners Documents.aspx" Level="1" BaseViewID="1" ContentTypeID="0x" ImageUrl="/_layouts/15/images/dlicon.png?rev=23" >
    <Query>
    <Where>
    <Contains>
    <FieldRef Name="Contributors"/>
    <Value Type="Text">Warner</Value>
    </Contains>
    </Where>
    </Query>
    <ViewFields>
    <FieldRef Name="DocIcon"/>
    <FieldRef Name="LinkFilename"/>
    <FieldRef Name="Modified"/>
    <FieldRef Name="Editor"/>
    <FieldRef Name="Contributors"/>
    </ViewFields>
    <RowLimit Paged="TRUE">30</RowLimit>
    <Aggregations Value="Off"/>
    <JSLink>clienttemplates.js</JSLink>
    <XslLink Default="TRUE">main.xsl</XslLink>
    <Toolbar Type="Standard"/>
    </View>
    This now works.
    However, the SharePoint team probably put this restriction in place for a reason. Possibly a performance related reason, due to the query performed on the SQL server, so use this method with caution.
    Regards, Matthew
    MCPD | MCITP
    My Blog
    View
    Matthew Yarlett's profile
    See my webpart on the TechNet Gallery that allows administrative users to upload, crop and format user profile photos. Check it out here:
    Upload and Crop User Profile Photos

  • SQL query to list all collections, members, OS, SP, IP and if physical/virtual

    Hi guys, I have the below query which lists all the collections and their members, however I need to expand it to also include the OS, Service Pack, IP and if it's a physical or virtual machine.
    I've tried a few things but only made it worse. Is anyone able to expand the below code to include those extras??
    SELECT
    v_FullCollectionMembership.CollectionID AS 'CollID',
    v_Collection.Name AS 'CollName',
    v_FullCollectionMembership.Name AS 'SystemName'
    FROM
    v_FullCollectionMembership, v_Collection
    WHERE v_FullCollectionMembership.CollectionID = v_Collection.CollectionID
    ORDER BY
    CollID ASC, SystemName ASC

    Hi,
    These requirements could be found in several threads or blogs. We need convert WQL to SQL, and you can involve SQL guys to integrate the statements and format the result.
    How to create a all virtual machines collection.
    SCCM SQL Query - IP Address
    ConfigMgr Systems without Current Service Packs, and System Patch Status 

  • Query listing primary user and the primary device

    Is there a query to list the primary device and the primary user associated with that device. Coming from a LANDesk environment I was able to create reports and queries that would list this information pretty easily. I can't seem to link the two in
    SCCM for reporting. Thanks 

    That's a SQL query that should be executed in SQL management studio. It can also be used to create a SRS report.
    Torsten Meringer | http://www.mssccmfaq.de
    Any hints, what it the query itself? And how it should be imported, that it will be created in SRS? Is there any instructions for this? Thanks.

  • Query to retrieve list of users who do not have a resource provisioned

    I am trying to get a list of user who do not have a particular resource provisioned. I cannot seem to find a table that links the resource object information and User information. I need to generate a CSV file. Has anyone done this before or have any ideas. If so any information would be very helpful.
    Thanks

    select * from usr where usr.usr_key not in (
    select usr.usr_key from oiu, usr, obi, obj, ost
    where oiu.usr_key=usr.usr_key
    and oiu.obi_key=obi.obi_key
    and obi.obj_key=obj.obj_key
    and obj.obj_name = :obj_name
    and oiu.ost_key=ost.ost_key
    and ost.ost_status not in ('Revoked'))
    -Kevin

  • Generate a list of users who has admins rights in BO XI.

    Post Author: bstn82
    CA Forum: Administration
    Any one has an idea how to produce a list of users who has admins rights?

    Post Author: TAZ
    CA Forum: Administration
    launch query builder from the admin launchpad
    enter this query
    select * from ci_systemobjects where si_parentid=19
    this will give you a list of all the members of the administrators group.
    You can experiment with query builder and possibly ask for help in the DEV forum if you need to write a more complex query.
    Regards,
    Tim

  • Error when manually adding user to project workspace

    I am currently using Project Server 2010.  I have a requirement for Business Users to have access to the project workspaces in Sharepoint but not be users of the PWA.  Similar to as it is outlined in this Microsoft Documentation (http://technet.microsoft.com/en-us/library/cc197668(v=office.14).aspx) 
    There might be a circumstance where you want to grant people who are not members of the project access to the project workspace site. Anyone assigned to the Web Administrator group can create new users for a project workspace site. In addition to the
    four groups that were mentioned earlier, there are four default SharePoint Server 2010 groups. They are as follows:
    Full Control   Has all personal, site, and list permissions.
    Design   Can edit lists, document libraries, and pages in the Web site.
    Contribute   Can view pages and edit list items and documents.
    Read   Can view pages, list items, and documents.
    I have added the user to the Contributor group but when they try to contribute to the space, ie add documents or an issue/risk, they recieve an error, similar to as is documented in the following article (http://pwmather.wordpress.com/2011/07/11/manually-adding-users-to-project-workspace-project-site-in-projectserver-ps2010-ps2007-epm/) 
    What has been identified in this article makes sense.  I am just wondering why Microsoft documentation states that it can be done.
    Any thoughts?

    Chris,
    The Microsoft article says, users who are not part of the project. It does not say not part of project server. 
    However, as far as I can remember, this scenario could work if the "Synchronization" is turned off between Project Server and Project Sites. I will run a test and confirm, later today.
    Prasanna Adavi,PMP,MCTS,MCITP,MCT TWitter: @prasannaadavi Blog: http://www.prasannaadavi.com

  • How can I find out the list of users who has the access to IT 0008

    All,
    How can I find out the list of users who has the W R permission for IT 008
    for others?
    SUIM doe not look like giving me the correct results.
    Please advise.
    Thanks,
    From
    PT.

    combine tables AGR_1251 and table AGR_Users on keyfield AGR_USERS
    in tabel AGR_1251 select on Field LOW values IT0008.OR W OR R,
    noiw you get also other values
    So better solution run the query twice over AGR1251 first on IT0008 and secondly on values W OR R and then the result over table AGR_USERS
    Youu also might put an additional selection on object P* (only selecting HR objects)
    output wll be UID in table AGR_USERS

  • Creation of variant to paas on list of users using a table

    Hello All,
    I got a requirement to create a report in FI-GL  with the requirement for selection and layout  as follows and how to incorporate the same in the
    List of Users (through variant)  and Doc. Type (user input) :
    To exclude transactions, which are not manual journal entries, a table should be created with exclusions.
    *This table will contain two types of exclusions:*
    Document types which will never been used for manual journal entries, since their nature is system related (SAP R/3 standard). In principle, this table will be fixed
    List of Users
    which are not related to persons, but to automatic transactions. This table needs to be verified and updated on regular basis.
    Could any one suggest me how to do a vaiant for the user  through a table and that too this table should ba updated on regular basis.

    Hi,
    rcc50886 wrote:
    We have a situation where we need to allow particular users which are stored in a table.Why don't you simply revoke the CONNECT privilege of the users who shouldn't log in, or lock those accounts? AFTER LOGON triggers can cause huge problems when they don't work right, eg., if for some reason they become invalid.
    create table system.ALLOW_RESTRICTED_USERS (username varchar2(30), insert_date date default sysdate );
    CREATE OR REPLACE TRIGGER SYS.RESTRICTED_USERS_TRIG
    AFTER LOGON
    ON DATABASE
    DECLARE
    BEGIN
    IF DBMS_STANDARD.LOGIN_USER NOT IN (SELECT USERNAME FROM system.ALLOW_RESTRICTED_USERS)
    --  IF SYS_CONTEXT ('USERENV','SESSION_USER') NOT IN (SELECT USERNAME FROM system.ALLOW_RESTRICTED_USERS)
             THEN
                   RAISE_APPLICATION_ERROR (-20001, 'Unauthorized login');
           END IF;
    END;
    Warning: Trigger created with compilation errors.
    SQL> show error
    Errors for TRIGGER SYS.RESTRICTED_USERS_TRIG:
    LINE/COL ERROR
    3/3      PL/SQL: Statement ignored
    3/38     PLS-00405: subquery not allowed in this contextHow to use subquery on the above trigger ? or is there any better way to achive required results .... IN (x, y, z)           works in PL/SQL, but
    ... IN (SELECT ...)       only works in SQL.
    Don't use IN. Use some other way to query the table, some way that will return usable results no matter what (if anything) is in the table, like this:
    DECLARE
       username_found     allow_restricted_users.username%TYPE;
    BEGIN
      SELECT  MAX (username)
      INTO       username_found
      FROM       allow_restricted_users
      WHERE       username     = dbms_standard.login_user;
      IF  username_found  IS NULL
      THEN
         ...As mentioned already, don't create your own objects in Oracle-supplied schemas, especially SYS and SYSTEM.

  • List of users who were granted particular function in oracle apps R12 db?

    Hi
    I need to list all users who were granted particular function (suppliers) from oracle apps R12 database. User -->Resp -->Menu --> Submenu/function. I have two queries like the following
    --Below sql query give all users those
    having Purchasing and Payables application access.
    SELECT UNIQUE u.user_id, SUBSTR (u.user_name, 1, 30) user_name,
    SUBSTR (r.responsibility_name, 1, 60) responsiblity,
    SUBSTR (a.application_name, 1, 50) application
    FROM fnd_user u,
    fnd_user_resp_groups g,
    fnd_application_tl a,
    fnd_responsibility_tl r
    WHERE g.user_id(+) = u.user_id
    AND g.responsibility_application_id = a.application_id
    AND a.application_id = r.application_id
    AND g.responsibility_id = r.responsibility_id
    AND a.application_name in ('Puchasing','Payables')
    ORDER BY SUBSTR (user_name, 1, 30),
    SUBSTR (a.application_name, 1, 50),
    SUBSTR (r.responsibility_name, 1, 60);
    --Below sql  query gives function name.
    SELECT function_id, user_function_name, creation_date, description
    FROM applsys.fnd_form_functions_tl where function_id=1348;
    What other tables to join to get all users having this function (suppliers) granted?
    Regards

    You cannot move a post to another forum.
    You can repost your entire text as another post in the other forum.
    You can then mark this thread as "answered" -- just to close it.
    Hemant K Chitale
    Edited by: Hemant K Chitale on Jan 16, 2011 5:11 PM

Maybe you are looking for

  • I installed the latest update of itunes and now I can't even open itunes. I have Windows 7.

    As seen above. I installed the latest update of itunes, as an admin on my windows 7 and now nothing is working. I already deinstalled itunes. But nothing is working. Could please someone help. It's the 11.1 or 11.2 update I think

  • Ascii character 129 for newline in the text file

    Hi there, I have java program that makes JDBC connection and reads through a table, write a column in text file, after each column puts delimiter "|"and after each row prints in the next line. This is the code below. public void queryRecords() {     

  • LSMW UPLOAD IT 0655 in Production System

    Hi, Firiends while uploading data in IT 0655 in Production System, for few personnel numbers I am getting this error *Missing secondary record for infotype 0002 for particular date for particular PERNR But i can see in the system that this record is

  • PeopleSoft Upgrade(DB2 8.46 to Oracle 8.49)

    Hello, We are trying to change database platform from DB2 to Oracle and tools release from 8.46 to 8.49 so far we are following Oracle Testmove methodology but the mail issue here is that we are spending lot of time doing this and so planning for alt

  • IDoc Listener connecting to a clustered SAP

    We have SAP MII V12.1 loaded to Netweaver CE 7.11 EHP1, and want to connect one of the Resource Adapters (an iDoc Listener in this case) to a clustered SAP environment by connecting to a message server / system ID / logon group combination. I can suc