How use jndi to create a organization and add a  user  to it.(ÈçºÎ´´½¨Ò»¸ö×éÖ¯µ¥Î»)

how use jndi to create a organization and add a user to it¡£THANKS£¡
ÈçºÎ´´½¨Ò»¸ö×éÖ¯µ¥Î»,²¢½«Ò»¸öÓû§Ìí¼Ó½øËü¡£Ð»Ð»£¡

Hi,
The command above about creating a group only works for the root site of the site collection, because the scope of the user group is site collection level, these groups
can be used in all the sites in this site collection.
With the existing groups in the root site, we can add users into them and grant specific permissions of a specific sub site to these groups.
Here is a demo about how to assign permission to a group using Client Object Model(though in C#) for your reference:
http://www.c-sharpcorner.com/UploadFile/54db21/set-permission-to-group-in-sharepoint-2010-programmatically/
Best regards,
Patrick
Patrick Liang
TechNet Community Support

Similar Messages

  • Easy Question How to create Basic Groups and add respective Users

    Please help. I need to know how to create a basic group and later add users to the group. The group name would be callled Hardware and I will add johnsmith and janedoe to the group. Should I concern myself with the group id for whatever reason? I think the command is somthing like groupadd. Do I do somthing like:
    # groupadd Hardware
    # useradd -G Hardware johnsmith
    # useradd -G Hardware janedoe
    I'm using Solaris 10 if that helps.
    A million thanks I very New2Solaris,
    Johnny Mac

    Ok here is what I found on the net:
    change a user's group information change a user's primary group membership:
    usermod -g Hardware johnsmith
    usermod -g Hardware janedoe
    I forgot to mention that these are existing accounts (sorry)
    In order to change user's supplemental group membership:
    usermod -G Hardware johnsmith
    usermod -G Hardware janedoe
    is the supplemental group simply adding them to another group and not changing there primary group, which by default I think is staff. I would like to keep them in staff and add them to another group, in this case Hardware.
    Anyones thougths?

  • Using dbca to create a db and all the users are locked and expired

    I create a template using dbca on 10gR2 with schema and data and when I use that to build a clone on another machine the users passwords are all locked and expired. I am doing this in silent mode from the command line and I am looking for a flag that produces the unlock users passwords feature which seems to be there if you manually run dbca from the GUI.

    This is a unix script I use to unlock accouts. I should notice this script is used for educational pourposes, in a production database it is not a good practice to leave demo accounts unlocked and overall with login=password.
    sqlplus -S /nolog <<ENDSQL
         connect / as sysdba
         SET LINESIZE 132
         SET PAGESIZE 0
         SET TERMOUT OFF
         SET NEWPAGE 0
         SET SPACE 0
         SET ECHO OFF
         SET FEEDBACK OFF
         SET HEADING OFF
         SPOOL x.sql
         SELECT 'ALTER USER '||username||' IDENTIFIED BY '||username||' ACCOUNT UNLOCK;'
         FROM   dba_users
         WHERE  account_status LIKE '%LOCK%';
         SPOOL OFF
         @x.sql
         !rm x.sql
         exit
    <<ENDSQL~ Madrid.

  • My airport extreme has connected to a Tplink router, i set my AE in Create network, so i get a problem of Double NAT. How can i repair this probleme because i have to use TPlink for my IP TV and i want to use AE to creat my network and the guest NW.

    my airport extreme has connected to a Tplink router, i set my AE in Create network, so i get a problem of Double NAT. How can i repair this probleme because i have to use TPlink for my IP TV and i want to use AE to creat my network and the guest NW. If we don't have a solution for this question, can i set my AE to use the IP TV and how??? I'm using a 4th Airport extreme

    No, not unless it is simply a network connection.
    How is your IPTV being provided.. if it is using a separate vlan or separate vpi/vci in the adsl connection. Who is your ISP?
    Is the TP-Link ADSL?
    Is the IPTV using a separate voice channel on adsl?
    Or a different vlan.
    Sorry but it is something where a definite answer is not possible unless you provide all the details.
    The setups are unique to each ISP around the world..
    Here is one for our local ISP.
    http://www.avenard.org/iptv/Setup.html
    He has a section on getting this working with apple router over wireless.. look
    http://www.avenard.org/iptv/IPTV_and_Wireless.html
    Google around and see if other people have had success.. the whole setup is tricky.. and it is hard if nobody has used it who actually understands networking.

  • How to show Html5 created in eclipse and link to any cloud application like c4C through HCP

    Hi Experts,
    How to show Html5 created in eclipse and link to any cloud application like C4C through HCP 
    Regards,
    Vijay.

    Your question is very unclear, please elaborate what you are trying to achieve.
    Also, did you click on the Alert Moderator link? This is for reporting abusive content, spam, points cheating, etc. It should not be used w/o a reason (one of the above) as what it does is putting the content in the Moderators' queue and hiding it from public view.

  • How to create a control and add it to a page layput

    I am reading the following link :-
    http://www.itidea.nl/index.php/what-about-you-must-fill-out-all-required-properties-before-completing-this-action-when-publishing-a-page/
    which says that i need to create a control and add it to a page layout. but can anyone help me in understanding how i can create a user control and add them to page layout ?
    Thanks

    > First problem  i could not find a User Control (Farm Solution only) under the Office/SharePoint section
    if you mean New item in Visual Studio, then check it under general Web category. User controls are basic ASP.Net functionalities, not Sharepoint-specific. If it is not there, you may use the following trick:
    1. Create new project in other VS instance using "ASP.Net Empty Web Application" template
    2. Add new user control there (in this project type it should exist for sure under Web category. Called "Web User Control")
    3. Copy all user control's files to the folder of your Sharepoint project (ascx, ascx.cs, ascx.designer.cs)
    4. In VS instance with Sharepoint project add existing items: all copied user control files. They should be grouped under ascx file automatically after that
    > The type or namespace name 'TaxonomyFieldControl' could not be found (are you missing a using directive or an assembly reference?)"
    you need to add reference to Microsoft.SharePoint.Taxonomy.dll assembly, which is located in the GAC (assume that you have installed Sharepoint on your dev env)
    Blog - http://sadomovalex.blogspot.com
    Dynamic CAML queries via C# - http://camlex.codeplex.com
    thanks a lot for your help. so can i do the following steps:-
    I follow these steps to deploy a user control.
    using Visual Studio 2012 , i added a new Farm solution.
    then inside the farm solution i added a new User Control(Farm Solution Only).
      3.   inside the user control i entered the following code:-
    using Microsoft.SharePoint;
    using Microsoft.SharePoint.Taxonomy;
    using Microsoft.SharePoint.WebControls;
    using System;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Web.UI.WebControls.WebParts;
    namespace WikiPopUp.ControlTemplates.WikiPopUp
    [ToolboxData("<{0}:CustomValidationRequiredFieldsOnPage runat=server></{0}:CustomValidationRequiredFieldsOnPage>")]
    public class CustomValidationRequiredFieldsOnPage : WebControl
    protected override void CreateChildControls()
    base.CreateChildControls();
    if (SPContext.Current.FormContext.FormMode == SPControlMode.Edit)
    bool arethere = AreThereAnyMissingRequiredFieldsOnPage();
    if (arethere)
    //SPPageStateControl:
    //Provides an ASP.NET control that handles the Ribbon buttons controlling the state of a Microsoft SharePoint Server wiki or publishing page,
    //such as the CheckInCheckOutButton or the PublishingButton.
    SPPageStateControl baseParentStateControl = Page.Items[typeof(SPPageStateControl)] as SPPageStateControl;
    //Publish button: SPListItem MissingRequiredFields checks this.FieldHasValue(link.Name, field);
    //the field is empty (which is right) when the page is first created (MMD field is never filled in)
    //when the field was once filled, saved and emptied the field in sp code still has the previous value and the check MissingRequiredFields succeeds
    //after succeeding this check the page is validated (this.Page.Validate()) and this one fails which results SP validating the page as the Save button does
    if (baseParentStateControl.HasError)
    //this overwrites the previous PageErrorState
    //and validates the page
    //no popup anymore and status updates in yellow area
    baseParentStateControl.EnsureItemSavedIfEditMode(false);
    else
    //there are missing fields at this listitem, but they're not on the page
    //do nothing here, because the SerializedErrorState contains the navigate url to the Edit Properties page
    //and a message pops up
    /// <summary>
    /// Check if required fields are missing which are present at the page
    /// </summary>
    /// <returns></returns>
    private static bool AreThereAnyMissingRequiredFieldsOnPage()
    foreach (Control control in SPContext.Current.FormContext.FieldControlCollection)
    //get the control type
    string type = control.GetType().Name;
    FieldTypes controlType = (FieldTypes)Enum.Parse(typeof(FieldTypes), type);
    switch (controlType)
    case FieldTypes.TaxonomyFieldControl:
    TaxonomyFieldControl tfc = control as TaxonomyFieldControl;
    if (!tfc.IsValid)
    return true;
    break;
    default:
    break;
    return false;
    enum FieldTypes
    DateTimeField, FieldValue, TextField, RichImageField, NoteField, RichHtmlField, PublishingScheduleFieldControl, TaxonomyFieldControl, BooleanField, ComputedField
      4. i add a reference for the Sharepoint.taxnomy
      5. then i deploy the solution to my site collection. and now i can see the new solution inside the farm solution under central administration.
    but not sure if these are all the required steps to register the user control or still i need to do extra steps ?

  • I want to know what I need and then how to take a pdf form I created in word and add the blue boxes so that anyone can type into my form

    I want to know what I need and then how to take a pdf form I created in word and add the blue boxes so that anyone can type into my form

    Hey john@adobe,
    Could you please specify how exactly have you created your form.
    You might need to have Acrobat installed on your computer to convert a word document to PDF.
    Do you have Acrobat installed? If yes, what version? If no, then please try using the trial version of Acrobat DC (latest version) and access its features:
    Download Adobe Acrobat free trial | Acrobat Pro DC
    Also, let me know what kind of blue boxes are you talking about.
    If you want others to edit your PDF form, then you need to make it a fillable form by choosing 'Form Editing' option from Tools pane.
    Let me know more on this so that I can help you out.
    Regards,
    Anubha

  • I want to use Xcode to create an app and i need developer tools. so i need to join the devoper program only problem is I'm not 18

    i want to use Xcode to create an app and i need developer tools. so i need to join the devoper program only problem is I'm not 18

    You can get Xcode without joining the developer program. Just go to the App Store and download it (it's free).
    You'd only need to join the Developer program if you want to put your app into the App Store, this is for OS X.
    You will need to join the Developer program if you want to develop for IOS. In that case you will need a parent or guardian.

  • Example of using ActionScript to create Grid, GridRow, and Grid Item?

    Does anyone know where I can find a complete example of using
    ActionScript to create Grid, GridRow, and Grid Item?
    I got an error when trying to add a child to the GridRow.
    Flex 2 said this method (addChild) is not available to
    GridRow.

    This thread should help:
    http://www.actionscript.org/forums/showthread.php3?t=167806
    matt horn
    flex docs

  • How do you enable 'Create Content' button on 'Add Content' page?

    How do you enable ‘Create Content’ button on ‘Add Content’ page?
    There is new functionality to a ‘Layout’ type personalization page like ‘Sales Dashboard’.
    Bug 4503123 INCONSISTENT WAY OF ADDING USER-DEFINED REGIONS ON WYSIWYG PAGE:
    There’s no way to add custom content to a configurable page.
    Add a “Create Content” button and let the user create a piece of content that extends to a region he creates.
    It says: Fixed->11.5.10.3CU
    In Oracle® Application Framework Personalization Guide Release 11i Part No. B25439-02 it says:
    p 4-5
    If you personalize a non-configurable page (a page that does not have the necessary metadata to personalize its layout) or when you run your application in Accessibility mode (profile option Self Service Accessibility Features (ICX_ACCESSIBILITY_FEATURES) is set to Standard Accessibility), you will not see the Page Layout Personalization page, as shown below. Instead, you will see the Page Hierarchy Personalization page, page 4-12, where you can perform the same personalization functions, using a descriptive tabular user interface.
    It tried this and can’t get it to display.
    Has anyone run accross this before?

    user587952,
    Can you describe your issue in detail forgetting those references for the time being. What exactly are you trying to do?
    Check this from the dev guide:
    In order to be able to take full advantage of page layout personalization capabilities, it is important when you create your configurable page, to use flexibleLayout and flexibleContent regions at all levels when you create the page hierarchy structure under your page layout region. In Oracle Applications, this is required, as it is the coding standard.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to create a group and add class instances to that group using VSAE

    how can i create a group in VSAE and add the objects to the group that too instances of a class.
    should i use the ID of the object or some other rule to add members to that group
    Thanks & Regards, Suresh Gaddam

    Hi,
    The below links should be helpful for you to create group in VSAE:
    Computer and Instance Group Fragments in VSAE
    http://blog.scomskills.com/create-a-computer-or-instance-group/
    Create a Group of Health Service Watcher Objects Using VSAE
    http://blog.scomskills.com/create-a-group-of-health-service-watcher-objects-using-vsae/
    SCOM VSAE – Custom Dynamic Computer Groups Based On Server Registry Keys
    Regards,
    Yan Li
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • How to edit a file from Organizer and return it to Organizer?

    In PSE5, in Organizer, I want to fix a photo. I right-click it and "go to quick fix" or"go to full edit". Editor opens up, I edit the photo, and want to return to Organizer. How to do that? If I try to save, I have to go through several dialogs, including warning that I'm about to replace an existing file, and default option to save a version; which all looks like I'm creating another instance of the file. Or, if I want to fix multiple files, I select them all in Organizer and go to quick fix; once I have finished, I don't see how I can commit all changes back to Organizer (which is showing "edit in progress" on them meanwhile) - I have to save each individual file, going every time through those several dialogs. Am I missing something obvious?

    Not missing anything, that's how it works. If you want to replace the
    file, go ahead, but most people keep a separate version, so you have
    your original, and then the one they changed. That way, if you don't
    like what you did, you can always go back to the original. You should
    get something like: IMG_001.jpg (let's say that's your original file),
    and then IMG_001-edited-1.jpg as the next one in the version set. This
    is how Elements works. Most editing does change pixels, so you actually
    have a new file. (I know that some editors/organizers do support
    non-destructive editing, but you are very limited in what things you can
    do.)
    -Trish

  • How to create a site and add security groups through code: scripts, csom, ... ?

    Hi,
    I'm new to CSOM and are looking for a way to create sites in SharePoint Office365 and especially add user to it with a specific role eg. 'visitor' or 'owner'.
    I use this code to add sites from a csv file, so far so good.
    But now I want to add security groups based on the csv file and assign a role. The security groups allready exists.
    and also how to add a user with a 'owner' role for some sites.
    That would make my life easier :-)
    so thank you in advance!
    # load assemblies
    #[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Client")
    #[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Client.Runtime")
    Add-Type -Path "c:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.dll"
    Add-Type -Path "c:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.Runtime.dll"
    # site collection
    $siteUrl = “https://mysharepoint.com”
    # admin
    $username = "[email protected]"
    $password = Read-Host -Prompt "Enter password" -AsSecureString
    # get clientcontext as object
    $ctx = New-Object Microsoft.SharePoint.Client.ClientContext($siteUrl)
    # assign credentials to clientcontext object
    $credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($username, $password)
    $ctx.Credentials = $credentials
    # create site from template 'teamsite' => STS#0
    $data = Import-Csv "c:\tools\CSOM\vakwerking_test.csv"
    foreach ($row in $data) {
    $webCreationInformation = New-Object Microsoft.SharePoint.Client.WebCreationInformation
    $webCreationInformation.Url = $row.vakwerkingurl
    $webCreationInformation.Title = $row.vakwerkingnaam
    $webCreationInformation.WebTemplate = "STS#0"
    $webCreationInformation.UseSamePermissionsAsParentSite = $false
    $newWeb = $ctx.Web.Webs.Add($webCreationInformation)
    Write-Host "Title" $newWeb.Title
    #send to sharepoint
    $ctx.Load($newWeb)
    $ctx.ExecuteQuery()

    Hi,
    The command above about creating a group only works for the root site of the site collection, because the scope of the user group is site collection level, these groups
    can be used in all the sites in this site collection.
    With the existing groups in the root site, we can add users into them and grant specific permissions of a specific sub site to these groups.
    Here is a demo about how to assign permission to a group using Client Object Model(though in C#) for your reference:
    http://www.c-sharpcorner.com/UploadFile/54db21/set-permission-to-group-in-sharepoint-2010-programmatically/
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

  • Using BAPI_DOCUMENT_CREATE2 to create a document and checkin to VAULT

    In a development we are using the function module BAPI_DOCUMENT_CREATE2
    to create a document and check in the original file into the R/3 storage
    system in one go (see subroutine below).
    However, we got the requirement to use a Vault ("Tresor") as the storage
    backend. Unfortunatly, just setting the documentfiles-storagecategory element to 'VAULT' results in 3 things:
    - the document gets created OK
    - the original file does NOT get checked in
    - the error message "Original 1 wurde bereits eingecheckt und abgelegt" (...has already been checked in)
    So please advise how to use the BAPI modules to achieve the checkin into
    a Vault storage.
    Could this have something to do with the undocumented documentfiles-originaltype element? What does this have to be set instead of the '1', thats working with SAP-SYSTEM storage?
    *&      Form  l_create_doc_and_save
    *       text
    *      -->P_LG_IOTAB  text
    *      <--P_YRAD_DOCFIELDSIOT  text
    *AP 001 ins
    FORM l_create_doc_and_save
                   TABLES x_iotab STRUCTURE ccihs_am07iot
                   CHANGING x_yrad_docfields STRUCTURE yrad_docfieldsiot.
    * create a new document in DMS with data from x_yrad_docfieldsiot
    * and set the new document in x_iotab
      DATA: l_files_tab LIKE bapi_doc_files2 OCCURS 0,
            l_drat_tab LIKE bapi_doc_drat OCCURS 0.
      DATA: l_docdata_wa LIKE bapi_doc_draw2,
            l_files_wa LIKE bapi_doc_files2,
            l_drat_wa LIKE bapi_doc_drat,
            l_return_wa LIKE bapiret2.
      DATA: l_doctype    LIKE bapi_doc_draw2-documenttype,
            l_docnumber  LIKE bapi_doc_draw2-documentnumber,
            l_docpart    LIKE bapi_doc_draw2-documentpart,
            l_docversion LIKE bapi_doc_draw2-documentversion.
    *fill document data
      CLEAR l_docdata_wa.
      l_docdata_wa-documenttype = x_yrad_docfields-dokar.
      l_docdata_wa-statusintern = x_yrad_docfields-statusintern.
    *  l_docdata_wa-documentnumber = x_yrad_docfields-doknr.
      CLEAR l_files_wa.
    *  l_files_wa-storagecategory = lc_database.  " 'SAP-SYSTEM'
      l_files_wa-storagecategory = x_yrad_docfields-storagecategory.
      l_files_wa-docfile = x_yrad_docfields-docpath.
      l_files_wa-originaltype = '1'.   " <--
      l_files_wa-wsapplication = x_yrad_docfields-wsapplication.
      APPEND l_files_wa TO l_files_tab.
      CLEAR l_drat_wa.
      l_drat_wa-language = lc_d.  " 'DE'
      l_drat_wa-description = x_yrad_docfields-description_de.
      APPEND l_drat_wa TO l_drat_tab.
      CLEAR l_drat_wa.
      l_drat_wa-language = lc_e.  " 'EN'
      l_drat_wa-description = x_yrad_docfields-description_en.
      APPEND l_drat_wa TO l_drat_tab.
      CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
        EXPORTING
          documentdata               = l_docdata_wa
    *   HOSTNAME                   =
    *   DOCBOMCHANGENUMBER         =
    *   DOCBOMVALIDFROM            =
    *   DOCBOMREVISIONLEVEL        =
        IMPORTING
          documenttype               = l_doctype
          documentnumber             = l_docnumber
          documentpart               = l_docpart
          documentversion            = l_docversion
          return                     = l_return_wa
        TABLES
    *   CHARACTERISTICVALUES       =
    *   CLASSALLOCATIONS           =
          documentdescriptions       = l_drat_tab
    *   OBJECTLINKS                =
    *   DOCUMENTSTRUCTURE          =
          documentfiles              = l_files_tab
    *   LONGTEXTS                  =
    *   COMPONENTS                 =
    * error occured?
      IF l_return_wa-type CA 'EA'.
        ROLLBACK WORK.
        MESSAGE ID '26' TYPE 'I' NUMBER '000'
                WITH l_return_wa-message.
      ELSE.
        COMMIT WORK.
        CLEAR x_iotab.
        x_iotab-zzdokar = l_doctype.
        x_iotab-zzdoknr = l_docnumber.
        x_iotab-zzdokvr = l_docversion.
        x_iotab-zzdoktl = l_docpart.
        x_iotab-linemod = ic_linemode-insert.
        IF sy-langu = lc_d.
          x_iotab-zzdktxt = x_yrad_docfields-description_de.
        ELSEIF sy-langu = lc_e.
          x_iotab-zzdktxt = x_yrad_docfields-description_en.
        ELSE.
          x_iotab-zzdktxt = x_yrad_docfields-description_de.
        ENDIF.
        APPEND x_iotab.
        CALL FUNCTION 'YRAD_LB34_SAVE_PEND_SET'
             EXPORTING
                  i_flg_save_pend = true.
        CLEAR x_yrad_docfields.
      ENDIF.
    ENDFORM.                    " l_create_doc_and_save

    Hi Frank,
    Did you manage to figure out what the problem was?
    Thank you.
    Regards,
    Bruno

  • How to create a package and add a file?

    Hi all,
    I am new to Java and very much much confussed with how to create a package and then include some files any help will be very thankfull.
    Thanks for your help
    kka.

    Steps for creating a package in java are as follows:
    Choose a base directory for your classes. For example, you might choose c:\java\packages. Type the following command:
    set CLASSPATH=%CLASSPATH%;c:\java\packages
    Create subdirectories for each chapter or section, if you don't already have them.
    For each of the classes in the subdirectories, add the following line to the very top of each file:
    package directory-name;
    where directory-name is the name of the subdirectory the class file is located in.
    In other directories you may have class files that need to access one of the classes in another directory (package). To do this, write one of the following at the top of the class that needs the other class:
    import subdir.*;
    or
    import subdir.classname;
    Use the class by name in the new class file.
    Note that you can create sub-packages by creating subdirectories of the original subdirectories, and inserting package statements at the top of the java files in those directories.
    Hope this helps!

Maybe you are looking for

  • System Monitoring - add SAP PI 711 system

    All, I'm facing problems when I want to add the ABAP stack of my SAP PI 7.11 system... I use Monitoring Setup Guide (CEN SAP NetWeaver 7.0 EhP 1, SPS 08) to do my setup --> Entering Monitored ABAP Systems with Release SAP NetWeaver 7.1 in ST03G. Usin

  • I need windows 7 screensaver to activate after terminating a remote desktop session

    I need windows 7 screensaver to activate after terminating a remote desktop session Ok, so this one is slightly complex. I have a monitor at work which needs to display company info via a screensaver set to scroll through a series of images. This is

  • Opening file in pages

    Cant open files in pages.  Message says "You need a newer version of Pages to open this document."  Doesnt make any sense the mac is brand new computer & I updated pages a couple of days ago

  • Application functions differently between accounts

    I recently installed Adobe CS4 and found that Dreamweaver was very slow. Adobe suggested that I create a new admin user to see if that helped. It worked excellent, but is there a way to cleanup my original user account so it will function without hav

  • How to make a url hyperlink in interaction center alert

    Hello, We would like to have a hyperlink to a url in the alert in the interaction center of CRM 7.0. We have tried to make the hyperlink in the alert text, by writing this html code <a href="http://www.google.com">GLOOGLE</a> but we think the alert e