create the user role

I would like to know if it is possible to create the user on the CodldFusion server role.

Your iand help information is great appreciated.

Kind regards

iccsi,

See http://forums.adobe.com/message/4907241#4907241

Tags: ColdFusion

Similar Questions

  • Assignment of roles to the user when creating the user

    Hi all

    I gave a roll deposited (< dsp:input bean = "ProfileFormHandler.value.roles.role" maxsize = "30" size = "30" type = "text" / > on the registration page.) After registration, each field in db except role (table dps_role).
    Pls let me know what I am doing wrong.

    Thank you

    You should not assign roles to the user as 'ProfileFormHandler.value.roles.role' of 's profile. You can link formhandler property to which you can pass the name or id of the role that you want to assign role assignment must always route through safety ATG API in order to properly update the mappings of Homeland Security. Because of these dependencies, you should not try the role of simply call profile.setPropertyValue ('roles',...) The code cannot fail this way, but if you assign the role in this way then it may not work as expected when checking for role based privileges. Here's one possible way to do it:

    1. in your file properties formhandler declare a dependency on the directory of the default user, which by default points to the profile database:

    userDirectory = / atg/userprofiling/ProfileUserDirectory

    So, in the form Manager, you declare corresponding setUserDirectory() and getUserDirectory().

    2 then in the formhandler, get the DirectoryPrincipal objects associated with the user profile and the role you want to assign and then assign the role to the user:

    import atg.userdirectory.UserDirectory;
    import atg.userdirectory.DirectoryPrincipal;
    import atg.userdirectory.User;
    import atg.userdirectory.Role;
    import atg.userdirectory.DirectoryModificationException;
    
    import java.util.Collection;
    import java.util.Iterator;
    
    ..
    ..
    
    private boolean assignRoleToUser(String roleName, String userId) {
    
      UserDirectory userDirectory = getUserDirectory();
      DirectoryPrincipal userPrincipal = userDirectory.findUserByPrimaryKey(userId);
      DirectoryPrincipal rolePrincipal = userDirectory.getRoleByPath(roleName);
    
      User user = (User)userPrincipal;
    
      Collection collection = userDirectory.getRoles();
    
      boolean status = false;
    
      Iterator iter = collection.iterator();
      while(iter.hasNext())
      {
        Object obj = iter.next();
        if(obj instanceof Role) {
          Role role = (Role)obj;
          if(roleName.equals( role.getName() ) && user!=null) {
            try {
              status = user.assignRole(role);    //will return true if the role was added otherwise false
            }
            catch (DirectoryModificationException e) {
           //handle exception
            }
            break;
          }
        }
      }
      return status;
    }
    

    In the code above 'roleName' parameter is the name of the role to be assigned to the profile with the id as "userId". If you want to do the role assignment when creating the user, then you can do the things above in postCreateUser() so that you can get the Principal associated with the profile. For more information about the interfaces and classes used here, you can refer to the documentation of the API of the ATG.

    http://docs.Oracle.com/CD/E26180_01/platform.94/APIDoc/ATG/userDirectory/package-summary.html

  • Hide a metadata profile based on the user role.

    Hi all

    I need to hide a metadata profile (log, update) based on the user role page. I have added metadata to a rule like "change" and added the rule to the profile. Now I want the metadata submitted must be visible for couple of user roles (admin, contributor) and it should be hidden for other user roles. How to achieve this?

    The content Server: 11.1.1.8

    Thank you

    Maury

    (1) create a rule that allows you to hide the metadata for all roles

    (2) create a new one which will show use the condition of activation of rule with building userHasRole("contributor")

  • GRANT SELECT on a table to the user / role changes for the tab last_DDL

    Hello

    Is grant select (or any private object) to the user/role a DDL statement?

    GRANT SELECT on a table to the user / role changes the last_DDL to the table.
    1 > is this expected behavior?
    2 > no way in which we can grant select on a table by another user, without changing the DDL? (for example create view).


    The test is performed:

    Prior to the issuance:


    OBJECT_NAME CREATED TIMESTAMP LAST_DDL_TIME OWNER
    ------- ---------------------- ---------- ------------- --------------------
    AR HZ_CUSTOMER_PROFILES 8 MAY 00 13 MARCH 13 2003-06 - 26:12:41:29



    Grant statement:
    GRANT SELECT ON "AR". "' HZ_CUSTOMER_PROFILES ' TO 'AR_VIEW ';

    Note: AR_VIEW is a role, I tried granting also directly to the user.


    After the grant:

    OBJECT_NAME CREATED TIMESTAMP LAST_DDL_TIME OWNER
    ------- ---------------------- ---------- ------------- --------------------
    AR HZ_CUSTOMER_PROFILES 8 MAY 00 21 MARCH 13 2003-06 - 26:12:41:29



    Old thread, discuss whether Grant is DDL or not, but no documented conclusions.
    ( Re: Grant, revoke is DDL and DCL? )

    Please help in the assessment above.

    -Best regards,.
    Mani

    It's the DOF.

    After all, this isn't DML, it implicitly committed and you cannot use it directly in PL/SQL: features of DDL. :-)

  • The error of the user role assignment

    Oracle 10.2.05
    Linux environment

    I just to give a role to a user, but the user has no role-based privileges.

    Here's what I did:

    First create a user (db_user) using system id
    Then, create the schema_admin_role role
    Then run the script to assign privileges to the role
    (SELECT ' grant select, insert, update, delete on ' | owner |) '.'|| table_name | ' schema_admin_role;' from dba_tables WHERE OWNER = "another_schema";

    Then run
    grant schema_admin_role to db_user;

    The problem:
    When db_user tries to update the table X own another_schema, he gets no sufficient privileges

    But when I run (select the owner, table_name, and privilege of dba_tab_privs where dealer = "SCHEMA_ADMIN_ROLE";), I see all the privileges belonging to this role.

    All your end solution will be appreciated.

    db_user start a new session after the GRANT?

  • Create the user who needs to see all Tables

    I'd like my developer to be able to view all the tables when it connects to SQL developers and browse the tables.
    What is the best that I can do this?

    Please see what I've done below:
    I have to create the user and granted privileges below, but he can't see any table when he opens a SQL Developer session.

    GRANT CREATE session, CREATE table, CREATE view,
    CREATE the procedure CREATE synonym
    To mydeveloper;

    The only way it can the tables so I'll give him the dba role, I don't want to do.

    Any suggestion?

    Hello

    If by "all tables", you mean all the tables/views in the database, including those in the SYS schema (such as V$ session) SELECT ANY TABLE are not enough. To display tables/views of SYS, you may need to look into SELECT_CATALOG_ROLE or SELECT ANY DICTIONARY. For security reasons, I prefer to create a role and grant select necessary findings and then grant this role to the developers.

    Ioan

  • using storytelling and get the user role

    Hi all
    I have a quick question on the narrative.
    can we get/trap the user role (as if it is reportviewer/admin) in my account, or anywhere on the dashboard?

    Kind regards
    Pavan

    Hello
    create 2 groups...
    --> Dashboard--> settings--> administrator manage privileges
    assign him appropriate roles...
    subject of your question... you can make a simple table that has users and roles...
    and fix your star schema...
    then with your writeback, you can change anything you want...

    Audit and this blog...
    http://obiee101.blogspot.com/search/label/user

    I hope I helped...

    ///////////////////////////////////////
    http://greekoraclebi.blogspot.com/
    ///////////////////////////////////////

  • I want to create the user in the direct areas but I found thi message: the requested account name is already in use.

    Over the period of re - use the account in the domains.live

    I want to create the user in the direct areas but I found thi message

    The requested account name is already in use or has been used in the past and has not been through the waiting period required of re - use.

    Can you help me

    Hi, Ahmed.

    It seems that the domain name you have selected is not available (or has already been used and it is found that the previous owner of the domain has used the same user name as an account).  In any case we can not help you here.  You need help from domain.live.

    Please go to http://help.live.com/help.aspx?project=domains&market=en-us&querytype=keyword&query=SNIAMODTUOBA&tmt=&domain=domains.live.com&format=b1 and down, click on support and follow the prompts to get help.  Although it is technically to the implementation of the field, I'm sure that your application will be either still answered or they will direct you to the proper location for assistance.

    In addition, you can try http://windowslivehelp.com/product.aspx?productid=25 for help Windows Live Administration.  If you can not find help with solutions validated or by performing a search, try posting in the forums.  I suggest the following for the problem that you specified: http://windowslivehelp.com/forums.aspx?forumid=7e6f04c0-6a48-4719-98f4-a9729d34c76e.

    I hope this helps.

    Good luck!

  • How to create the user account using the command?

    How to create the user account using the command?

    Open cmd as administrator, and then type the following commands one after the other

    NET user / add program mypassword
    net localgroup administrators program / add
    net share concfg * C:------/ grant: program, complete
    This will create a user account with the name "Program" and the password "MonMotpasse".

    You can create the user name and password of your choice.
  • What opening of database Service of Cloud Computing console receiveing "the user role cannot access the Cloud database Service" message and see no service. Why?

    What opening of database Service of Cloud Computing console receiveing "the user role cannot access the Cloud database Service" message and see no service. Why?

    Thank you in advance.

    Try now

  • What is the difference between the role of support and the user role in the business group?

    I know there are a few differences between the role of support and the user role in the business as business group elements and Management group

    editable settings . But I can't find any document that introduces more precisely what they can do, what they can't.

    Are there any articles or documents or other means that can tell the specific differences between the Director, support and user group?

    If you have not taken a glance at this map permissions by GrantOrchard you should. It is very useful to know what permissions each user role. The big difference between the role of support and the user is that the user can only do things for themselves and user support can do things on behalf of other users. There is nothing quite as granular as you specified.

  • VCAC 6.0, I can't add a USER to the AD Group to a company includes the user role

    IF I goto to MODIFY an existing group of companies, I can not ad any group Active Directory the "USER ROLE" on the bottom of the page, I'm not sure what I am doing wrong

    in the attachment, I try to FIND ad GROUPS, I see the users but not groups

    Thank you!

    Post edited by: quantum_2

    "" Message edited by: quantum_2 I also have the same problem with the "Group Manager ROLE" and the "support role" I can't announces an ad GROUP

    He can not see the group - I think that it is a known problem, type the name of the Group anyway, and press ENTER.  vCAC will throw an error if it does not recognize the name of the group.  vCAC didn't need to 'find' the name of the group to accept it.

  • Create the user by using the API OIM11g R2 with custom attributes

    Friends,

    I am trying to create a user using API in OIM 11 g 2 with a custom attribute.

    < String, Object > HashMap createUserMap = new HashMap < String, Object > ();
    createUserMap.put (UserManagerConstants.AttributeName.FIRSTNAME.getId (), "Test);
    createUserMap.put (UserManagerConstants.AttributeName.LASTNAME.getId (), "tester);
    createUserMap.put (UserManagerConstants.AttributeName.USER_LOGIN.getId (), "tester1");
    createUserMap.put (UserManagerConstants.AttributeName.USERTYPE.getId (), "End user");
    createUserMap.put (UserManagerConstants.AttributeName.EMPTYPE.getId (), "EMP");
    createUserMap.put (UserManagerConstants.AttributeName.PASSWORD.getId (), "Welcome1);
    createUserMap.put (UserManagerConstants.AttributeName.EMAIL.getId (), "[email protected]");
    createUserMap.put ("act_key", new Long("1"));
    createUserMap.put ("USR_UDF_DEPTNO", "10");

    Try
    {
    UserManager userService = oimClient.getService (UserManager.class);

    User user = new User (userLogin, createUserMap);
    Result = userService.create (user) UserManagerResult;
    System.out.println ("State of creation: '" + result.getStatus ());
    }
    catch (System.Exception e)
    {
    e.printStackTrace ();
    }

    But it fails with the error below.
    Create a user application cannot set or change the USR_UDF_DEPTNO attribute, since it is not defined in the corresponding dataset. : create user: USR_UDF_DEPTNO. *

    But this attribute exists in the IOM and I was able to create the user using the user interface with this custom attribute.

    Please let me know what I am doing wrong.

    You must pass a long time don't value not int. It should be that way.

    Long deptno = 1234;
    createUserMap.put ("deptno", deptno);

  • What should I use to create the user interface of a CEAP plugin on mac

    Hey there,

    I'm new to the development of a plugin, but I did development of script for quite a long time however. I'm tring to develop an ECAP plugin. I go to the sample project of "Panelator" (from AE CC SDK), but I don't know how to create ui for the control panel plugin stuff.

    The sample project is not an example of code to do this on a mac computer, I found the code examle for windows however.

    So, can someone generously tell me how? I had to do with cocoa? But as I understand it, I can only use Objective-C to write cocoa ui.

    Thank you very much!!!

    Hi Li Zhiqing,

    We have just announced in the next major update to AE CC signs HTML5 is supported:

    http://blogs.Adobe.com/AfterEffects/2014/04/new-changed-after-effects-CC-2014.html

    This will allow to create the user interface using HTML5 and use your scripts for the conduct of AE.  It is quite a bit easier than the use of cocoa for the construction of the UI panel.  Thoughts?

  • How to find the owner of the user or who created the user?

    Hi all

    I want to know owner of user or users who created?

    example:
    system created the test user.
    test has created the user xyz.

    So I want to know who created xyz?

    Thanks in advance,
    Sandeep.

    You can not find who created the user unless you enable the audit of the database or write a trigger (CREATE ddl event-based) that will track the session information of the user who executes a command from the user to CREATE.

Maybe you are looking for

  • In a photo album to create a sub-album?

    Hello!I just bought a MacBook Pro and I was trying to organize my photos. Now I wonder if it is possible to create a sub-album in a photo album? I don't see a way to do it. I looked where I can create a new album or smart album. I tried to create alb

  • Is there a way to recover photos deleted in Windows Live Photo gallery?

    I found I had inadvertently put one set of s phot in a file with different photos without report. I removed them from the file that I did not want them, thinking that they stayed in the second file. I guess it was a Subfile of the first. I got confus

  • call phone call FETCH?

    Hi all How can I reterive phone call phone number? When we press sendKey calls show [missed calls, calls received and placed calls]... My requirement is: How can I get stressed the appeal of phone calls? Thank you Savi

  • Incremental synchronization AUSST problem

    HelloI took the responsibility inherited from maintain server update adobe internal to the company and currently facing some problems.2 questions:1. when I run the incremental update via schedule task, it begins and ends in 1 min with event id 201. t

  • Hello, I need help! A.S.A.P.

    Hello, so every time I open Lightroom is said toWhat should I do? !Note: IDK what is a catalog and when I click on 'Choose a different catalog' it shows me whatAnd I can not click on 'Continue', he will show me the same thing:What should I do? Please