To set a default role according to the user.

Hi,
I would like to set different default roles according to users. For example, we have the following prerequisites:
1) 3 roles: roleA | roleB | roleC (in this order).
2) 3 differents users: user1, user2, user3.
So, if I log-in with the user1, the default role should be the roleA; if I log-in with the user2, the default role should be the roleB; and so on.
But I don't want to change the order of the roles using "sort priority" property.
How can I do this?
Thanks,
Samantha.

Hello Samantha,
Does each of the users need to have each of the roles? If not you could just not assign the other roles except the one you want to display as default role (a assume you mean the role that is displayed first after logon).
If each of your users need every role, I am afraid your requirement is not realizable unless you use the sort priority property. Why don't you want to use it in the first place?
On possible yet circuitous way to meet your requirements would be the following:
Create another role for each of your user(-group)s. Say in your case Role 1, Role 2 and Role 3 which are not defined as entry points.
Assign roleA, roleB and roleC to Role 1 where roleA has the lowest sort priority; and assign user1 to role 1.
Assign roleA, roleB, roleC to Role 2 where roleB has the lowest sort priority; and assign user 2 to Role 2
and so on.
Of course you need to use sort priority for that and I think thats hard to maintain. (probably not even what you are looking for)
Maybe you can get a litle more concrete what you are trying to achieve.
best regards
Stefan

Similar Messages

  • Set a default LDAP domain if the user does not specify one during logon

    We are using LDAP authentication. We have setup the repository to have 3 LDAP servers, with the following domain identifiers: PUBLIC, AGENT, CORPORATE. We would like to default the domain to PUBLIC for external users, so they do not need to provide a domain. AGENT and CORPORATE users would still specifiy the domain. Is there a way to do this? I've tried setting the USER variable in an init block using the following sql.
    Init block 1 - populates the USER session variable to prepend with PUBLIC if not specified
    select (CASE WHEN substr(':USER',1,instr(':USER','/')-1) is NULL then 'PUBLIC/'||':USER'
    ELSE ':USER'
    END)
    from dual
    Init block 2 - LDAP authentication - populates the EMAIL and UID session variables
    mail = EMAIL
    uid = UID
    Because I've defined the USER variable in the previous init block, I can't return the uid into the USER variable. This caused it to think that authentication was successful, and it allows you to login with valid LDAP users, but it will take any password you provide.
    ideas?

    Yes, I have done that. I have removed all other init blocks, and now have just the two. Init block 1 - set the value of the USER_TEMP variable, and init block 2 - the authentication init block. The authentication init block is marked as required for authentication, and the other init block must precede it. It is still allowing a user to login successfully under PUBLIC, when they are not a public user. If I explicitly login as PUBLIC/<user> it fails, as I would expect. But when I login as <user> it is successful. Which is not correct. I've checked in Answers that the variable USER_TEMP is being set to PUBLIC/<user>. So, I'm still confused as to why the LDAP init block is allowing it to go through.
    Edited by: user10603068 on Jun 9, 2010 7:26 AM

  • How do you set a default Home Page in the Safari Applet?

    How do you set a default Home Page in the Safari Applet?

    How do you set a default Home Page in the Safari Applet?

  • Is it possible to set a default music player for the music on my external hard drive while still keeping my iTunes the default player on my Mac ?

    Is it possible to set a default music player for the music on my external while still keeping my iTunes the default player on my Mac ?
    Message was edited by: Pellseidon

    There is no setting in the iPhone to set another default music player. The default is Music. If you are using another application, you are at the mercy of how that application operates as far as what occurs when it stops or errors out. The car is looking for music to play.

  • Setting default password to all the users in OIM

    Hi ,
    I want to set the default password for all the users provisioning in OIM via trusted recon.
    Please let me know how to achieve this.
    Thanks

    in MDS(eventhandler.xml) provide operation=CREATE else in code you can check the same if(operation.equals("CREATE"))
    find below complete code this is tested and working fine
    public EventResult execute(long processId, long eventId, Orchestration orchestration) {
    UserManager um =null;
    isLoggerInfoEnabled = logger.isInfoEnabled();
    if(isLoggerInfoEnabled)logger.info("execute: processId = " + processId + "; eventId = " + eventId + "; orchestration = " + orchestration);
    HashMap<String, Serializable> parameters = orchestration.getParameters();
    logger.info("parameters = " + parameters );
    RandomPasswordGeneratorImpl randomPasswordGenerator = new RandomPasswordGeneratorImpl();
    char new_pwd[] = randomPasswordGenerator.generatePassword(new User(null));
    String password = new String(new_pwd);
    try{
    um = Platform.getService(UserManager.class);
    String userLogin= getParamaterValue(parameters, "User Login");
    um.changePassword( userLogin, password.toCharArray(), true);
    }catch (Exception e) {
    if(logger.isErrorEnabled()) logger.error(e.getMessage());
    if(logger.isErrorEnabled()) logger.error(" ", e);
    return new EventResult();
    public BulkEventResult execute(long processId, long eventId,BulkOrchestration bulkOrchestration) {
    tcUserOperationsIntf userOperationsService=null;
    UserManager um =null;
    isLoggerInfoEnabled = logger.isInfoEnabled();
    if(isLoggerInfoEnabled)logger.info("Bulk processId = " + processId + "; eventId = " + eventId + "; bulkOrchestration = " + bulkOrchestration);
    um = Platform.getService(UserManager.class);
    HashMap<String, Serializable>[] parametersArray = bulkOrchestration.getBulkParameters();
    for(int i=0;i<parametersArray.length;i++)
    HashMap<String, Serializable> parameters = parametersArray;
    logger.info("parameters = " + parameters );
    RandomPasswordGeneratorImpl randomPasswordGenerator = new RandomPasswordGeneratorImpl();
    char new_pwd[] = randomPasswordGenerator.generatePassword(new User(null));
    String password = new String(new_pwd);
    try{
    String userLogin = (String)parameters.get("User Login");
    um.changePassword( userLogin, password.toCharArray(), true);
    }catch (Exception e) {
    if(logger.isErrorEnabled()) logger.error(e.getMessage());
    if(logger.isErrorEnabled()) logger.error(" ", e);
    return new BulkEventResult();
    private String getParamaterValue(HashMap<String, Serializable> parameters, String key) {
    String value = (parameters.get(key) instanceof ContextAware)
    ? (String) ((ContextAware) parameters.get(key)).getObjectValue()
    : (String) parameters.get(key);
    return value;
    }

  • Is it possible to set a default media player for the iPhone?

    I have a music subscription with another company, therefore all my music is played through their app. When I plug my phone into my car to play music, it always opens iTunes and alerts me there is no music there so I have to open the app and select the music. Which is fine, but when the app stops (for whatever reason), the iTunes (which I'm not sure why they don't call iMusic or something equally silly) tries to play any music I have in iTunes. Is there any way to stop this madness? Thanks!

    There is no setting in the iPhone to set another default music player. The default is Music. If you are using another application, you are at the mercy of how that application operates as far as what occurs when it stops or errors out. The car is looking for music to play.

  • Change display language according to the user programmatically

    How to change the site displaying language according to the user ? Let say I've drop-down to select language in a web page according to that whole site display language change and also user's language in user profile need to change. How to do that in using
    server object model programmatically.

    Hi,
    According to your post, my understanding is that you wanted to display language according to the user.
    First, we can find out the current culture of the logged in user based on
    LCID.
    System.Threading.Thread.CurrentThread.CurrentUICulture.LCID
    Then you can set the language based on the LCID.
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/0e5d36e1-ec06-404a-ab2c-0e0ff475abec/how-to-change-the-language-based-on-log-in-user-programmatically-in-sharepoint-2013-how-to-change?forum=sharepointdevelopment
    http://sharepoint.stackexchange.com/questions/104140/change-site-display-language-according-to-the-user
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • How to set different default interactive reports for different user groups?

    I'm probably overlooking an obvious solution, but how do I set different default interactive report for different user groups?
    For the same interactive report, I want one set of users to see a default where the default filter is based on column X. However, another group of users doesn't have authorization to see that column so I need to set the default filter to something else for them.
    Thanks

    You can set a filter on a report in a URL - would that help? I think with apex 4.x you can also link to a saved default report or alternative report...

  • I have upgraded Apple Aperture from version 2 to version 3 and I'm having a problem with the "Highlights and Shadows" adjustment. According to the user's manual, I should have access to an advanced disclosure triangle which would allow me to adjust mid co

    I have upgraded Apple Aperture from version 2 to version 3 and I'm having a problem with the "Highlights and Shadows" adjustment. According to the user's manual, I should have access to an advanced disclosure triangle which would allow me to adjust mid contrast, colour, radius, high tonal width and low tonal width.
    If anyone has any suggestions as to how to access this advanced section, I'd be most grateful.

    Hi David-
    The advanced adjustments in the Highlights & Shadows tool were combined into the "Mid Contrast" slider in Aperture 3.3 and later. If you have any images in your library that were processed in a version of Aperture before 3.3, there will be an Upgrade button in the Highlights & Shadows tool in the upper right, and the controls you asked about under the Advanced section. Clicking the Upgrade button will re-render the photo using the new version of Highlights & Shadows, and the Advanced section will be replaced with the new Mid Contrast slider. With the new version from 3.3 you probably don't need the Advanced slider, but if you want to use the older version you can download it from this page:
    http://www.apertureexpert.com/tips/2012/6/12/reclaim-the-legacy-highlights-shado ws-adjustment-in-aperture.html

  • How to change the Default login script and the USER login script in Netware3.12

    I need to cut down the disk map from Neware 3.12 in Win98 client's PC.
    please tell me
    how to change the Default login script and the USER login script in
    Netware3.12 ?
    Or is there any other ways to do this thing?
    Thanks a lot!

    On 4/6/2006 [email protected] wrote:
    > how to change the Default login script and the USER login script in
    > Netware3.12 ?
    Please repost in the discontinued.forums.
    Edison Ortiz
    Novell Product Support Forum SysOp
    (No Email Support, Thanks !)

  • Function module to Delimit the roles assigned to the user

    Hi All,
    I am working on security role automation process abap report.My requirement is to delimit the roles assigned to the user on account of employee termination or retirement. I have used the function module "BAPI_USER_ACTGROUPS_ASSIGN"  to delimit the role assigned to the user.
    Passing the importing parameter "username" and in the Tables parameter"ACTIVITYGROUPS"  passing the respective parameters AGR_NAME(Role), FROM_DAT(Start Date),TO_DAT(termination date - 1). When I passing the parameters as mentioned above,the role assigned to the user is getting deleted,instead of delimitation of the role assigned to the user.
    Is there any other function module we can use to delmit the roles assigned to the user?  Please help.
    Regards,
    Krishnan

    hai,
    please try this.
    /VIRSA/RE_BAPI_CREATE_ROLE- Create Roles
    /VIRSA/ROLE_ASSIGN_CUA_NH
    /VIRSA/RE_BAPI_ROLE_TO_USERS
    ASSIGN_USERS_HIERARCHY - User Assignment to Role - this is a Normal FM
    try this bapis this may work
    BAPI_USER_LOCK
    - BAPI_USER_PROFILES_ASSIGN
    - BAPI_USER_LOCPROFILES_ASSIGN
    - BAPI_USER_LOCACTGROUPS_ASSIGN
    - BAPI_USER_CHANGE
    - BAPI_USER_UNLOCK

  • Universe object that points to certain field according to the user PVL

    Hi universe designing experts !
    Marianne solved a problem I have in [this|Web Intelligence: Hide / Show object according to InfoView Locale; post. I wanted to replace an object/column in a report according to the users locale. This was done at report level with a selection containing the getPreferredViewingLanguage() function in WebI.
    My question now is, could I somehow define in the universe an object that, according to the PVL of the report viewer, points to a different field in the database ?
    We have description fields in the databse for different languages.
    Thanks in advance !
    P

    Hi Marianne
    Thanks again for your response.
    Marianne Loenen wrote:
    > If you want a solution for this written down, you need to give the database you use.
    We are using an Oracle 10g database.
    Marianne Loenen wrote:
    > In Oracle there is a system view v$nls_parameters in which you can lookup stuff like that.
    > It's a one row view, so you can use a (select xxx from v$nls_parameters) as column in any query.
    OK I didn't know that. But I don't think that I could use this variable in this situation. Please correct me if I'm wrong...
    What I want to do is this:
    A user with Preferred Viewing Language nl_NL and a user with PVL en_GB are requesting the same report. In that report there is a field with a description about another field. The descriptions are 2 different columns in the database. You showed me before (thanks again) how I could switch the 2 field according to a users PVL that I could query from the system ( getPreferredViewingLanguage() ). I want, if possible, to do this at Universe level so I only have to drag 1 single object in the query that corresponds to the right column according to the report viewers PVL... So the en_GB guy will see English descriptions and the Dutch guy will see the Dutch descriptions all from the same object...
    Would be cool if that was possible...
    Thanks again for helping !
    P

  • Choose the Subject Area according to the user connexion

    Hi all,
    Suppose that I have many subject area in the presentation layer (for example SA1 and SA2).
    Is it possible to choose the subject area to display according to the user connexion.
    ie. If we have two users User1 and User2 and i would like to schow only SA1 for USER1 and USER2.
    Thanks
    Best regards

    You can do this by following steps....
    1. Open the repository in Administration Tools. In the presentation layer, Go to the presentation catalog. then right click the presentation catalog you want to restrict to a particular user.
    2. click properties. Go to persmissions tab, then click show all users and groups. select the user you want to restrict and then click the checkbox next to it. keep clicking it until it becomes a red cross. click ok. It's done.
    Hope that helps...Correct me if I am wrong.
    Edited by: user9149257 on Feb 24, 2010 3:19 AM
    Edited by: user9149257 on Feb 24, 2010 3:20 AM

  • TS4002 I have opened iCloud from setting on my iPhone, it accepts the user and pwd  but then freezes at the terms & conditions page

    I have opened iCloud from setting on my iPhone, it accepts the user and pwd  but then freezes at the terms & conditions page

    Try deleting the account, then signing back in.

  • Set default Parameter ids for the users

    Can some one please tell me how to set PID and values(Parameter ids) which will default upon every user creation.
    thnx.

    hi syed,
    You can fill fields on screens with default values from SAP memory using parameter IDs. It is the same as SPA and GPA.
    Parameter IDs are stored in the table <b>TPARA</b>. They can be created from <b>SE80</b>. Choose Edit Object->Choose tabstrip "More" and then choose the radiobutton Set/Get Parameter ID
    Below example is from <b>SAP Help</b>.
    For example, a user only has authorization for company code 0001. By entering the value '0001' in field COCD in the Parameter register in this user’s master record (SU01), the system automatically fills the field Company code with the value ‘0001’ on all screens he or she calls. If this company code is not predetermined using a parameter ID in the user master record, the system automatically adopts the first value entered by the user at the beginning of the transaction for the rest of the current terminal session. However, this value has to be re-entered the next time the user logs on to the system.
    Regards
    Alfred
    <points_begging_removed_by_moderator>
    Message was edited by: Julius von dem Bussche

Maybe you are looking for

  • J1INQEFILE - Quarterly TDS Returns

    Hi Experts, When I am excuting the quaterly returns, we are not getting all the documents in the list. Reason: Challan number (J_1IINTCHLN) is not updated in the with_item table. But already accounting document is cleared. How to update this challan

  • Does mountain lion support airplay mirroring

    I am trying to get netflix on apple TV and have had 2 stories aout airplay. 1 is you cannot use airplay from the imac outside the itune app if you have a core dual processor? Secondly you need mountain lion to use airplay outside of itunes. Reason be

  • DNS requests from Solaris 10 box to Bind/MySQL DNS server fail

    We have some servers running solaris 9 and some running solaris 10. We also have a DNS server setup running BIND with the MySQL backend. When I query the DNS server from our solaris 9 boxes, they always work just fine. However, when I query the DNS s

  • How can we access the 'print booklet' options in CS6 without a printer online?

    I cannot access the print setup option in 'print booklet' in CS6 to change the paper/image orientation from portrait to landscape. I am trying to save it as a .ps file so I can take a print ready pdf to the printers. But the resulting pdf that saves

  • Adobe hasn't allowed me to cancel my CC subscription in order to collect a 50% fee.

    Yes, I know: " if you have an annual membership then you will need to contact our support team directly at Contact Customer Care.  A one to one interaction is necessary to ensure that you are authorized to cancel your annual membership." I've tried t