Adding users in OCS R2

dears,
is there a way or script that i can use so i can add a mailbox, calender and assigne a portal to users on OID why do i have to add a mailbox, calendar and assigne a portal for every user created on OID alone it taks time. or is there a portal for administarato that he can login and creat the user on oid and a mailbox, calendar and assigne a portal for him form one place only

There are three main comand Line programms that you need to use
The first is LDAPADD and LDAPMODIFY, you can look these up to see how its done but below is a couple of examples
ldapadd -p 4032 -h www.mymachine.org -D "cn=orcladmin" -w <orcl password> -f newuser.ldif -x
The newuser.dif file looks like
dn: cn=jinky.jenkins, cn=users, dc=mydomain, dc=org
userpassword: m0nday
mail: [email protected]
objectclass: top
objectclass: person
objectclass: inetorgperson
objectclass: organizationalperson
objectclass: orcluser
objectclass: orcluserv2
orclactivestartdate: 20031020000000z
sn: jinky.jenkins
cn: jinky.jenkins
You need to also run ldapmodify using the same flags but with the following LDIF file
dn: cn=OCS_PORTAL_USERS, cn=Groups, dc=hubsdale, dc=org
changetype :modify
add: uniquemember
uniquemember: cn=jinky.jenkins, cn=users, dc=hubsdale, dc=org
To add an calendar user simple run
unidssearch
this will output all of the OID users who are not calendar users
example
A DID=cn=jason.gardiner,cn=users,dc=hubsdale,dc=org
A DID=cn=julian.lintell-smith,cn=users,dc=hubsdale,dc=org
A DID=cn=robert.chubb,cn=users, dc=hubsdale,dc=org
A DID=cn=lecturer,cn=users, dc=hubsdale,dc=org
A DID=cn=student,cn=users, dc=hubsdale,dc=org
A DID=cn=PORTAL_ADMIN,cn=users,dc=hubsdale,dc=org
A DID=cn=PORTAL,cn=users,dc=hubsdale,dc=org
A DID=cn=PUBLIC,cn=users,dc=hubsdale,dc=org
Next what you need to do is
uniuser -add "DID=cn=James Alexander, ou=Research, o=Acme, c=US" -n 134
Obviously put cut and paste the DID info for your user into the -add command
Notes can be found at the following URL
http://bigip-steltor.oracle.com/notes/corptime-server/5_4/admin/chapter6.htm#1019416
Finally you need to add the email user...
To do this you need to create a file of the following structure
[email protected]
orclmailquota=400000000
baseuserdn=cn=who.ever,cn=users,dc=mydomain,dc=org
I called the file email_user_details
Then you just
oesucr email_user_details
and that should do it
We www.xicon.com spent 3 days writing a java utility that adds either one user and reads a file of usernames and passwords and then creates them all so it might be an idea for you to do the same.
Cheers
Paul

Similar Messages

  • What is the difference between using the command "dsmgmt" and the "Managed By" tab when adding users to the local administrators Account on a Read-Only Domain Controller?

    When I use the
    "dsmgmt" command to add a user to the local administrators account of a RODC I can actually see the user when I use the "Show Role Administrators" parameter. However, I can't see the members of the
    group added to the "Managed By" tab of the RODC object in AD. Even though, the users added using
    "dsmgmt" and by the "Managed By" tab can all log in locally and have admin rights to the RODC. Are there any differences between these two ways of adding users to the local administrators account? 

    Hi,
    For groups, managedBy is an administrative convenience to designate “group admins”. Whatever principal listed in
    managedBy gets permission to update a group’s membership (the actual security is updated on the group’s AD object to allow this).
    In Win2008 and later managedBy also became the way you delegated local administration on an RODC, allowing branch admins to install patches, manage shares, etc. (http://technet.microsoft.com/en-us/library/cc755310(WS.10).aspx). 
    On the RODC, this is updating the RepairAdmin registry value within RODCRoles.
    So the difference between them should be only the way they do the same thing.
    For more details, please refer to the below article:
    http://blogs.technet.com/b/askds/archive/2011/06/24/friday-mail-sack-wahoo-edition.aspx
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Error while Adding user to  'SunAccessManager' Resource

    Hi,
    I configured SAM Resource adapter in SIM 6.0. When I create a user and assign SAM Resource getting the following Error,
    com.waveset.util.WavesetException: An error occurred adding user 'uid=SIMUser2,ou=People,o=Employee,dc=nl,dc=dap,dc=com' to resource 'SunAccessManager'. com.waveset.util.WavesetException: An error occurred creating user. java.lang.IllegalArgumentException: Invalid parameters
    Pls help me to resolve this issue
    Thanks,
    Deva

    Hi Satish,
    The problem is that you added the table and the objetc that you used to add the table is not freed properly. You need to free the object and then the reference count to that table will be 0 - which will enable you to add the fields
    e.g
    Dim pUTables As SAPbobsCOM.UserTablesMD
    'Do your stuff
    Set pUTables = Nothing
    Dim pUFields As SAPbobsCOM.UserFieldsMD
    'Do your stuff
    Set pUFields = Nothing

  • Adding users programmatically -- almost there

    ... getting close...
    Create this procedure in the PORTAL schema.
    It works if you call it when connected as PORTAL, but not when connected as anyone else.
    It is throwing a user-defined exception frmo inside WWCTX_SSO, so I am guessing that it is looking at the session context and deciding that the SESSION_USER shouldn't be adding users.
    Perhaps a true PL/SQL wiz can pick up the ball and figure out what is going on.
    FYI this is sandbox code at its grittiest, so don't even think of pasting it into your application 8^)
    create or replace procedure ci_add_portal_user
    (uname in varchar2,pwd in varchar2, email in varchar2,lname in varchar2,fname in varchar2,clr_lvl in integer)
    as
    l_guid varchar2(32);
    p_user_id number;
    sess dbms_ldap.session;
    err_code number;
    err_msg varchar2(300);
    INVALID_GRP_NAME_EXCEPTION exception;
    INVALID_SITE_EXCEPTION exception;
    VALUE_ERROR_EXCEPTION exception;
    DUPLICATE_GROUP_EXCEPTION exception;
    GROUP_NOT_FOUND_EXCEPTION exception;
    GROUP_MEMBER_EXCEPTION exception;
    GROUP_NOT_UNIQUE_EXCEPTION exception;
    USER_NOT_FOUND_EXCEPTION exception;
    USER_EXISTS_EXCEPTION exception;
    APP_NOT_FOUND_EXCEPTION exception;
    NO_MANAGER_EXCEPTION exception;
    DUPLICATE_GRANTEE_EXCEPTION exception;
    NO_ACCESSIBLE_OBJECT_EXCEPTION exception;
    ORG_NOT_EXIST_EXCEPTION exception;
    INVALID_PERSON_ID_EXCEPTION exception;
    ACCESS_DENIED_EXCEPTION exception;
    CIRCULAR_REFERENCE_EXCEPTION exception;
    UNEXPECTED_EXCEPTION exception;
    USER_NOT_DELETABLE_EXCEPTION exception;
    INVALID_ARGUMENT_EXCEPTION exception;
    INVALID_AUTH_FUNC_EXCEPTION exception;
    LDAP_CONNECTION_EXCEPTION exception;
    DEPRECATED_API_EXCEPTION exception;
    INVALID_ARGUMENT_EXCEPTION exception;
    BEGIN
    /* Create SSO User */
    begin
    l_guid := portal.wwsec_oid.create_user_entry
    p_base => portal.wwsec_oid.get_user_search_base,
    p_user_name => uname,
    p_password => pwd,
    p_email => email,
    p_first_name => fname,
    p_last_name => lname,
    p_create_state => null,
    p_bind_as_user => false
    exception when others then
    err_code:=SQLCODE;
    err_msg:=SQLERRM;
    dbms_output.put_line(' Exception :'||err_code||' '||err_msg);
    end;
    /* Create Portal User */
    begin
    p_user_id:=portal.wwsec_api.id_sso(p_username=>uname);
    dbms_output.put_line('USER ==>'||p_user_id||' '||portal.wwsec_api.user_name(p_user_id));
    exception when others then
    err_code:=SQLCODE;
    err_msg:=SQLERRM;
    dbms_output.put_line(' Exception :'||err_code||' '||err_msg);
    end;
    begin
    portal.wwsec_api.add_user_to_list(p_user_id,portal.wwsec_api.group_id('CI_USR'),0);
    portal.wwsec_api.set_defaultgroup(portal.wwsec_api.group_id('CI_USR'),uname);
    exception when others then
    err_code:=SQLCODE;
    err_msg:=SQLERRM;
    dbms_output.put_line(' Exception :'||err_code||' '||err_msg);
    end;
    begin
    portal.wwsec_api.add_user_to_list(p_user_id,portal.wwsec_api.group_id('CI_CLR_'||clr_lvl),0);
    exception when others then
    err_code:=SQLCODE;
    err_msg:=SQLERRM;
    dbms_output.put_line(' Exception :'||err_code||' '||err_msg);
    end;
    END ci_add_portal_user;

    Andrew,
    to add a user to a specific group in the FileRealm, try doing the following:
    import java.security.acl.Group;
    import weblogic.security.acl.BasicRealm;
    import weblogic.security.acl.ManageableRealm;
    import weblogic.security.acl.Security;
    // Create a user in WebLogic
    BasicRealm bRealm = Security.getRealm();
    ManageableRealm mRealm = (ManageableRealm)bRealm;
    if (null == mRealm) { throw new SecurityException("Security Realm is null");
    weblogic.security.acl.User oNewUser = mRealm.newUser("username", "password",
    null);
    // -- Put the new user into the selected group
    Enumeration eGroups = mRealm.getGroups();
    Group oGroup = mRealm.getGroup("group name you want to add to");
    if (null != oGroup) {
    oGroup.addMember(oNewUser);
    try { mRealm.save("FileRealm.Properties"); } catch (IOException e) { }
    Andrew Dunn <[email protected]> wrote:
    Thanks, Mike.
    I'm trying to use the Default realm in WLS7.0 (which uses LDAP), so
    I'm looking for the classes specific to the Default realm - I assume
    BEA provides some, but I can't find them in the docs.
    On 2 Dec 2002 10:15:18 -0800, "mike" <[email protected]>
    wrote:
    You will not find implementing classes in general. The thing is thatthey (classes)
    are specific to particular implementation of realm you are using (assumingyou
    use 6.x or below, but that is logically true for 7). So you need tofind what
    are the classes used in your realm and work with those. If you are usingan implementation
    shipped with WLS (eg. FIleRealm or LDAP) you will have to use reflection...
    Andrew Dunn <[email protected]> wrote:
    How can I add users/groups via the Weblogic API? All I can find in
    the documenattion is interfaces, but no implementation classes. How
    can I instantiate the classes?
    Thanks, Andrew

  • Adding users to groups

    Hi,
    can any one share documents/resources pertaining to how to create sap user groups in BOE.
    how to add groups to users.
    how to import sap users.
    etc

    Hi,
    You can find the product documentation here:
    http://service.sap.com/~form/sapnet?_SHORTKEY=01100035870000713358&_SCENARIO=01100035870000000202&
    Specifically, go to the "Integration for SAP Solutions" section and take a look at the Installation and Administration guide:
    https://websmp210.sap-ag.de/~sapidb/011000358700000559912010E/xi31_sp3_bip_sap_inst_en.pdf
    As far as adding users and groups to the system, this is down through the CMC.  The Business Objects Enterprise Administrators guide should help you with these tasks: 
    http://help.sap.com/businessobject/product_guides/boexir31SP3/en/xi31_sp3_bip_admin_en.pdf
    To add users/groups to the BOE system, you have to go into the CMC/Authentication section and click on the SAP tab.  In here, you configure your SAP system information and add the groups that you wish to import into BOE.  Once you add the groups through here, the user accounts and groups will be mapped in to the Users and Groups section of the CMC.  From here, you can treat them like any other group in the system.
    You add users to the SAP groups the same way you would for BW or any other SAP product.  If a new user is added to an SAP group that is imported into BOE, then that user will be able to logon to the BOE system.
    We also have many notes on these subjects. 
    thanks
    Jonathan

  • SP 2010-After adding user from IIS is not found in central admin

    Hi Experts,
    I am trying to configure my SP 2010 with Form Based Authentication.
    After configuring WebSite, STS and Central Admin I added the user from IIS , But not able to found from central admin in Form Authentication.
    I checked in database the user is added.
    I followed the below blog .
    http://jasear.wordpress.com/2012/03/16/sharepoint-2010-setting-up-form-based-authentication-fba-using-asp-net-sql-membership-provider/
    Can experts help me how to get the added user to central admin.
    Thanks
    AshisK

    I was finally able to get the FBA working. After many failed attempts, I knew there was a configuration issue which was causing the error.
    I provided connection string and provider details at 4 places, instead of the 3 mentioned  in various blogs around ->
    1. Sharepoint Central Admin
    2. Sharepoint Web Services
    3. SecurityTokenServiceApplication
    4. And finally the web application itself.
    The connection string for 2nd and 3rd will remain same however, provider details need to be added.
    After completing this step, I was able to login using Form Based Authentication without an issue.
    AshisK

  • Adding users using XML

    The examples for adding users to iFS work fine, but do I have to create an XML file for every user I want to add? I tried to create an XML file with more than one <SimpleUser> definitions, but iFS reports an "unexpected end of file" error at the position where the second User definition starts.

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by jsacks:
    Ralf,
    Using the standard <object_list> tag to parse a list of simpleuser tags should work:
    <HR></BLOCKQUOTE>
    Included inside <objectlist> tags, it works fine. Thank you very much.
    null

  • Suddenly getting 404 error when adding user to group

    Hi,
    I have an OAM 10.1.4.0.1 instance that's been working fine.
    However, today, I noticed that when I tried to add a user to a group, when I am in the selector page and click a user, I then get an HTTP 404 error.
    I've searched all of the log files that I can find, and I can't see any error messages. The only thing that is showing an error in a log is the IIS that I have setup with WebGate for OAM Admin. I get a "404" error with a sc-win32-status or "3".
    I have restarted everything, and that still hasn't helped.
    Does anyone here know what might be causing this, or how to diagnose the problem?
    Thanks,
    Jim

    Hi,
    I'm answering my own question/problem here, but hopefully this info will help someone else.
    I was able to get adding users to groups working again. I found that after I cleared the cache in my browser (IE6), the "add user to groups" started working again, without the HTTP 404 error.
    In hindsight, I guess this kind of makes sense, because if you ever watch the URIs on the selector pages, they all look alike, so I'm guessing the IE would not send a full GET request, but the "content" was no longer valid on the OAM server, thus the 404 error.
    Jim

  • 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

  • Adding Users in OIM using SPML

    Hi,
    In our project we have a requirement where we have to create a user in OID/OIM. The existing code connects to OIMProvisioning using SPML to search, add and modify users. In SPML we couldn’t find any basedn being set while adding user or searching for user.
    a.     It would be helpful if someone who has knowledge on OID/OIM and SPML to let me know how to query or add users in a specific BaseDN using SPML.
    b.     I would like to know if it is possible to update both OID and OIM using SPML.
    Regards
    Philip

    It may help you:
    http://www.youtube.com/watch?v=7C8cI5zc1DM

  • Adding users in FDQM

    Hi All,
    I have around 100 users in the system whom i have provisioned in shared services giving Intermediate-2 access in FDQM. I am aware that to add these users in FDQM i have to do it using Administration menu -> User maintenance .
    However, since doing this task (adding user + giving access to locations) is tedious to do for 100 users manually, is it possible to do the same using some kind file upload / automatically with minimal efforts?

    It may help you:
    http://www.youtube.com/watch?v=7C8cI5zc1DM

  • Move Users from OCS 2007 R2 to New Lync 2013

    I am trying to move users from OCS to Lync 2013 from within the Lync 2013 Control Panel and am getting an error that states "Cannot find Registrar pool. Verify that "FQDN of old pool" is a valid registrar pool.

    Give this Lync powershell command a go:
    Move-CsLegacyUser <user> -Target <Lync2013 Pool Name>
    Move-CsLegacyUser -Identity "Pilar Ackerman" -Target "atl-cs-001.litwareinc.com"
    Have you reviewed the OCS to 2013 migration documents?
    http://technet.microsoft.com/en-us/library/jj205375.aspx
    Did you add the OCS pool to the 2013 topology?
    Have you visited Lync News lately? All of the latest Lync news, articles, and tips collected in one giant aggregator. http://lyncne.ws

  • Lync 2013- 4 FE servers-F5 HLB- migrating users from OCS-WMI error

    There are 4 Lync 2013 EE FE's with an F5 HLB.  3 of the FEs are Windows 2012 R2 and one is Windows 2008 (this will be decommissioned).
    Access the Lyncadmin/cscp web page works to migrate users from OCS to Lync most of the time.  We noticed at times the following error message:
    Move-CSLegacyUser: verify that WMI Provider is installed by running OCSWMIBC.MSI. For details, see the inner exception.
    So for troubleshooting we would use the <FEname>/cscp to test each server.  The 2008 and one of the 2012 servers worked fine.  The other 2 2012 servers failed with that same error message.
    I looked at lots of articles and made sure that all of the servers had the HKLM\System\CurrentControlSet\LSA\DisableLoopbackCheck set to 1 as well as putting the Poolname FQDN and LB VIP IP address in the HKLM\System\CurrentControlSet\LSA\MSV1_0 registry
    keys.  Just the pool FQDN alone was tried as well.  All the servers were rebooted one at a time as well after these changes.  The Pool FQDN is a DNS entry with the VIP address.
    The same user account is being used when logging into the CSCP.  Trying the CSCP from any server or client machine and using the <FEname>/cscp fails for the 2 servers.
    I have checked the authentication methods in IIS for CSCP internal and have negotiatekerberos then NTLM listed under Windows authentication\challenge.
    I am running out of resources and ideas.
    Anyone?

    Have you confirmed that ocswmibc.msi is installed on all the 2013 Front Ends?
    "First install the Windows Management Instrumentation (WMI) Backward Compatibility interfaces package; this application is installed
    by running OCSWMIBC.msi. (OCSWMIBC.msi can be found on the installation DVD in the Setup folder.)" - http://technet.microsoft.com/en-us/library/gg413025.aspx
    Please mark posts as answers/helpful if it answers your question.
    Blog
    Lync Validator - Used to assist in the validation and documentation of Lync Server 2013.

  • Adding User to Group Programatically?

    I've used the APIs below to create portal users and apply a
    group number to them when they are inserted into the Portal User
    table. However, when the users log into the portal, they still
    are not attached to any group (i.e. Portal objects that can only
    be viewed by certain group members, cannot be seen by the
    programatically added users unless it is done manually in
    Portal). Does anyone have an idea as to how to get this to work?
    Thank You in advance,
    Justin
    Code to add users:
    PORTAL30_SSO.WWSSO_API_USER_ADMIN.CREATE_USER(v_username,
    v_password, v_admin_email, null, null, false, l_error_return);
    PORTAL30.WWCTX_API_PRIVATE.SET_CONTEXT('PORTAL30','');
    portal30.create_portal_user(v_username);
    portal30.wwsec_api.set_defaultgroup(10, v_username);

    I answered my own question. This seems to be the best procedure
    form programatically adding users and applying them to existing
    groups:
    PORTAL30_SSO.WWSSO_API_USER_ADMIN.CREATE_USER(v_username,
    v_password, v_email, null, null, false, l_error_return);
    PORTAL30.WWCTX_API_PRIVATE.SET_CONTEXT('PORTAL30','');
    portal30.create_portal_user(v_username);
    portal30.wwsec_api.set_defaultgroup(9, v_username);
    portal30.wwsec_api.add_user_to_list(portal30.wwsec_api.id
    (v_username), 9, portal30.wwsec_api.NOT_OWNER);

  • No Start Menu, removed and added User Account then no "Built In" Apps - Build 1049

    So quick history, was having problem with start menu not working under build 1044 for the second user I'd added to the machine (Microsoft account). Rebuilt using "Remove everything and reinstall windows". Seemed to resolve the problem for the newly
    added user and was still working under the original user (also Microsoft Account).  Then along came build 1049 and now the same start menu issue occurred for the original user account.  So, as both were setup as admins, removed the original
    user account, restarted, checked all data removed and added the account again. 
    First attempt added the account as a local account then added the Microsoft account after login, result = start menu working but no "built in" apps (store beta, insider app etc).
    So removed account again and added again, this time using Microsoft account immediately, logged in and exactly the same result.
    Any ideas how to resolve?

    You cannot use the Start Menu logging in as anything that would be in the BUILTIN\administrator group on the computer.  I had the same problem when I added the machine to a domain, thus domain admins is in the BUILTIN\Administrator group.
    The reason being that the Windows 10 Start Menu is an appxpackage, and you can't run appxpackages using the built-in administrator account.  As is the case for example with Windows Store.  It doesn't however give you a warning message, you
    just click on the windows button and nothing happens.
    This is just total madness imv.  It kind of made sense when all the appxpackages where apps, but now they include parts of the OS, the OS is essentially non-functional when you log in using anything in the BUILTIN\ administrator group.
    If you really want to blow your mind, go into PowerShell and run the command: get-appxpackage|remove-appxpackage
    If you run that on Windows 8.1 it will remove all the bloatware apps for the logged on user.  Run it in Windows 10 and it removes various parts of the OS for that user as well, such as the Start Menu!

Maybe you are looking for