How to create a Set of Group Owners

Step 1:  Create and bind an attribute called GroupOwner to user objects in the Portal
Step 2:  Run the following Powershell script as an administrator of FIM.
Step 3: Create your set based on the updated GroupOwner attribute which will now be true for all your Group Owners
Step 4:  Make workflows! :)
The Code:
$uri
=
http://NameofYourServer:5725
$attributeName
=
"GroupOwner"
# load FIM snapin, ignore errors if already loaded
Add-PSSnapin
FIMAutomation
-ErrorAction
SilentlyContinue
# gets the value of a single-valued attribute from an exported object
function
GetAttributeValue($exportObject,[string]
$name) {
$attribute
=
$exportObject.ResourceManagementObject.ResourceManagementAttributes |
Where-Object {$_.AttributeName
-eq
$name}
if ($attribute
-ne
$null
-and
$attribute.Value) {
$attribute.Value
      $users=Export-FIMConfig
-CustomConfig
"/Person[ObjectID = /Group/Owner]"
-OnlyBaseResources
foreach ($user
in
$users) {
$objectID2=$user.ResourceManagementObject.ResourceManagementAttributes
| Where-Object {$_.AttributeName
-eq
"ObjectID"}
$objectID2=$objectID2.Value
$ImportOperation
= [Microsoft.ResourceManagement.Automation.ObjectModel.ImportOperation]
$ImportState
= [Microsoft.ResourceManagement.Automation.ObjectModel.ImportState]
$importChange
=
New-Object
Microsoft.ResourceManagement.Automation.ObjectModel.ImportChange
$importChange.Operation
=
$ImportOperation::Replace
$importChange.AttributeName
=
${attributeName}
$importChange.AttributeValue
=
$true
$importChange.FullyResolved
= 1
$importChange.Locale
=
"Invariant"
$importObject
=
New-Object
Microsoft.ResourceManagement.Automation.ObjectModel.ImportObject
$importObject.ObjectType
=
"Person"
$importObject.TargetObjectIdentifier
=
$objectID2
$importObject.SourceObjectIdentifier
=
$objectID2
$importObject.State
=
$ImportState::Put
$importObject.Changes
= (,$importChange)
$importObject |
Import-FIMConfig
-uri
$uri

Changed the code to allow for skipping values that are already true to reduce FIM level overhead.
$uri = "http://FQDNofyourServer:5725"
$attributeName = "GroupOwner"
# load FIM snapin, ignore errors if already loaded
Add-PSSnapin FIMAutomation -ErrorAction SilentlyContinue
# gets the value of a single-valued attribute from an exported object
function GetAttributeValue($exportObject,[string] $name) {
$attribute = $exportObject.ResourceManagementObject.ResourceManagementAttributes |
Where-Object {$_.AttributeName -eq $name}
if ($attribute -ne $null -and $attribute.Value) {
$attribute.Value
$users=Export-FIMConfig -CustomConfig "/Person[ObjectID = /Group/Owner]" -OnlyBaseResources
foreach ($user in $users) {
$objectID2=$user.ResourceManagementObject.ResourceManagementAttributes | Where-Object {$_.AttributeName -eq "ObjectID"}
$objectID2=$objectID2.Value
$objectID3=$user.ResourceManagementObject.ResourceManagementAttributes | Where-Object {$_.AttributeName -eq "GroupOwner"}
$objectID3=$objectID3.Value
if ($objectID3 -ne $true) {
# write-host $objectID2
$ImportOperation = [Microsoft.ResourceManagement.Automation.ObjectModel.ImportOperation]
$ImportState = [Microsoft.ResourceManagement.Automation.ObjectModel.ImportState]
$importChange = New-Object Microsoft.ResourceManagement.Automation.ObjectModel.ImportChange
$importChange.Operation = $ImportOperation::Replace
$importChange.AttributeName = ${attributeName}
$importChange.AttributeValue = $true
$importChange.FullyResolved = 1
$importChange.Locale = "Invariant"
$importObject = New-Object Microsoft.ResourceManagement.Automation.ObjectModel.ImportObject
$importObject.ObjectType = "Person"
$importObject.TargetObjectIdentifier = $objectID2
$importObject.SourceObjectIdentifier = $objectID2
$importObject.State = $ImportState::Put
$importObject.Changes = (,$importChange)
$importObject | Import-FIMConfig -uri $uri

Similar Messages

  • How to Create BC SET using Transport Request

    Hi,
    How to Create BC SET using Transport Request.if any one knows help me

    Hi Gowri,
    The below given description might help u out ..
    You want to create a BC Set from a transport request. A transport request containing Customizing data must already exist.
    This Customizing request is a change request with which you can copy and transport the changed system settings.
    The BC Set is based on the data in the Customizing request. You can copy all the data records in the Customizing request into the BC Set, or select a subset.
    You can subsequently edit BC Sets created from transport requests.
    Procedure
    Enter the Customizing request number and Continue.
    -> You can search for requests with the F4 help. The request type is Workbench/Customizing requests. The request status is changeable or released.
    -> You get an overview of the transport objects in the transport request. To put a transport object in the BC Set, flag the row Copy.
    ->The Status column tells you the BC Set-compatibility of the transport object. It can have the following values:
    ·        green traffic light: The transport object can be put in the BC Set.
    ·        yellow traffic light: BC Set creation or activation problems are possible. Check whether all data records have been put in the BC Set, after you create it.
    ·        red traffic light: Table entries exist, but they cannot be interpreted. They cannot be put in the BC Set.
    ·        Cancel: The transport object cannot be interpreted or put in the BC Set.
    You can get detail information about the object at the bottom of the screen, by double-clicking on a row. For detailed information about messages, choose the icon in the Documentation column.
    The Activity column indicates the associated IMG activity. If no unique assignment is possible, the field is empty. To assign an activity or change an existing assignment, choose the Change Activity icon. Position the cursor on the IMG activity to which you want to assign the object, and choose Select.
    When you have made your choice, choose the Save Data from Transport Request icon.
    Make the necessary entries in the following dialog box Create Object Directory Entry. Choose Save.
    To create the BC Set with the selected rows, choose Save.  
    When you read the transport request, the data records are initially only read in the logon language. When you save the BC Set, all languages in the system are also put in the BC Set.
    You can edit the BC Set manually at any time. Proceed as described in Change BC Set.
    Reward if helpful.
    Thankyou,
    Regards.

  • How to create 'BC set'

    Hi,
            We want to know 'How to create BC set'.   
           We  are  looking forward to your answer.
    Regards,
        Gaito

    Hi Gaito,
    The below link could be of help:
    http://help.sap.com/saphelp_nw04/Helpdata/EN/6f/3c3f88fbef11d2958c00a0c930dcc1/content.htm
    Regards,
    Srikishan

  • How to create change set in 9i r2 ?

    I created new change source and new change set , not use 'SYNC_SOURCE' and 'SYNC_SET'.
    after I created change table and activated change set, I update source table's data.
    but I can't find any recored in change table.
    please help, thanks.
    //create change source
    begin
    dbms_cdc_publish.create_change_source(
    change_source =>'hr_change_source',
    source_description=>'Change source for hr test_source',
    logfile_suffix => '',
    logfile_location => ''
    end;
    //create change set
    begin
    dbms_cdc_publish.create_change_set(
    set_name => 'hr_change_set',
    change_source_name => 'hr_change_source',
    begin_date => sysdate,
    end_date => sysdate+5,
    tablespace_name => 'ts_cdcpub',
    ignore_ddl_events => 'y',
    rollback_seg_name =>' ');
    end;
    //create change table
    begin
    dbms_cdc_publish.create_change_table(
    owner => 'cdcpub',
    change_table_name => 'hr_ct',
    change_set_name => 'hr_change_set',
    source_schema => 'hr',
    source_table => 'cdc_test',
    column_type_list => 'id integer, name varchar2(10)',
    capture_values => 'both',
    rs_id => 'y',
    row_id => 'n',
    user_id => 'n',
    timestamp => 'n',
    object_id => 'n',
    source_colmap => 'n',
    target_colmap => 'y',
    options_string => 'tablespace ts_cdcpub');
    end;
    //activate change set
    begin
    dbms_cdc_publish.alter_change_set(
    set_name => 'hr_change_set',
    advance_enable => 'y',
    ignore_ddl_events => 'n',
    rollback_seg_name => '');
    end;
    //source table
    create table hr.cdc_test(
    id integer,
    name varchar2(10),
    primary key(id)
    );

    Dear Niranjan
    the WWI design of a cover letter is very "company" specific. In most cases data like:
    - which material number was "delivered" is shown e.g. with material text
    - some contact adress data from the company shipping the MSDS is shown
    etc.
    Most of the information printed are retrieved using a parameter symbol. Some data might come from information in CVD1; some data is retrieved by using the data from CVD1; e.g. Customer adress information etc. (here data is retrieved from business partner information)
    The parameter symbols you are showing are "standard"; therefore you can use option of Ralph to try to identify the "source" of the data as retrieved.
    There are not many threads related to cover letter topic in this FORUM; I believe not more than 10 threads are related to this topic. I participated in discussion of one of these threads; i was not able to find the thread; sorry
    Only as a hint: don't only concentrate on WWI design; identify as well how you need to "link" the cover letter to a specific "process"; this is done via customizing; e.g. refer to the SDS distribution OSS in which the whole SDS process is described; the process is described well how to "link" the cover letter to a shipment process
    Topic is explained on "very" high level here:
    Cover Sheet Template (DBV) - Basic Data and Tools (EHS-BD) - SAP Library
    So I believe the best option is to us the proposal of Ralph and trying to understand the standard symbols etc.
    C.B.
    PS: after oce again trying to find additional threads I found only these:
    Coverletter - Output of material data
    Parameter Symbols not appearing in Coversheet and/or Acknowledgement Receipt
    How to create Cover letter

  • How to create Field Set in flex

    I need to know best way to do create Field Set as following
    You can see the HTML field set reference from here..
    HTML CODE
    <form>
      <fieldset>
        <legend>Personalia:</legend>
        Name: <input type="text" size="30" /><br />
        Email: <input type="text" size="30" /><br />
        Date of birth: <input type="text" size="10" />
      </fieldset>
    </form>
    So,how can I do it?

    This link should set you off on the right track.
    http://livedocs.adobe.com/flex/3/html/help.html?content=layouts_08.html

  • How to create a new business group in production instance?

    Hi All
    How can I create a new Business Group in Oracle Apps in a production Instance where there wont be any HRMS responsibility. Do I need to create a new Business Group through Inventory responsibility ? Any documents about this issue?
    Thanks and Regards
    M.A.Rahman

    why do you need to create a new business group? To implement HR? If so, linking a HR responsibility to your user, is one of the few steps to go anyway.
    How you did it on the test environment?
    Why not link a hr resp to your user temporarily, and disable it later.
    I'm always afraid to answer this kind of questions, since the real requirement is not described.

  • Address book in OSX 10.7.2: how to create a new contacts group?

    Hi.
    I have upgraded to OSX 10.7.2 on my MacBook Pro.
    How can I create a new contacts group  using addresses in my Address Book?
    The idea is to use the group to send emails to a bunch of people without having to write them in individually.
    (Before, on on OSX 10.5, I went into my Address Book, clicked on the left to  "Add a Group" and then slid in the contact files I wanted to include in the group.
    Tx for helping!
    Ray

    Open adress book with 2 pages exposed and reach the position with the groups listed on the left page.
    In the bottom left corner there is a "+" ... just click on it
    Even easyer... press shift command N

  • How to create a new security group and assignments of rigths?

    Hi,
    In our current "Cisco Unified CM Administration System version: 7.0.1.11000-2" installation, we are a couple of administrators using the same user account to logon to the "https://10.10.x.x/ccmadmin/showHome.do" homepage.
    Where can I create a new user group and assign the appropriate rights to the group, and add users to the group? Or is it another approach that I need to follow instead of the way that security rights a made in a Microsoft Active Directory?
    Is there any place that I can read or view examples on how the setup can be done? I would like to have it in the way that everyone has their personal user account and use this to logon the administration-web page instead of an account that everyone uses.
    Kind regards,
    Carl-Marius

    why do you need to create a new business group? To implement HR? If so, linking a HR responsibility to your user, is one of the few steps to go anyway.
    How you did it on the test environment?
    Why not link a hr resp to your user temporarily, and disable it later.
    I'm always afraid to answer this kind of questions, since the real requirement is not described.

  • How to create caracter set with reference(or create it anyhow)on 5.0

    I have difficulty (only on version 5.0 and 4.7) to create caracter set with reference(or create it anyhow). On version 4.6 there is no problem (I can do that like described in course BC305).
    Transaction "spad"->Full administation-> character set->change-> character
    set-> character set->create using template(or just create)
    I have intention to modify char set afterwards
    How could I do that in version 5.0 ECC?

    and therefore in this forum with minor chances to get an answer.
    regards
    Peter

  • How to create caracter set on version 5.0 ECC

    I have difficulty (only on version 5.0 and 4.7) to create caracter set with reference(or create it anyhow).
    On version 4.6 there is no problem (I can do that like described in course BC305).
    Transaction "spad"->Full administation-> character set->change-> character
    set-> character set->create using template(or just create)
    How could I do that in version 5.0 ECC?
    I have intention to modify char set afterwards as some character are printed incorrecty on a printer device (Digital LG14)after upgrade.
    This device is defined on unix acess type "L" with a custom made device type using a custom made character set
    9452.
    Otherwise(on other printers) I have no problem with characters using acess type "S" with a device type "I2SWIN"(using character set 1406).
    Do you have any idea(tomorrow I will visit customer facing this problem first time). I plan to try the custom made device type with character set 1406.
    Do you have any idea if I do not succeed?

    Hi Tina,
    See
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/d9/4a963651ea11d189570000e829fbbd/frameset.htm">Maintaining Character Sets</a>
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/d9/4a967751ea11d189570000e829fbbd/frameset.htm">Defining Character Sets</a>
    Hope this help!
    Juan
    Please reward with points if helpful

  • How to create a new function group in EEWB creating new fields.

    Hi gurus,
    Iu2019m creating an enhancement of the BP Object through EEWB, but when I finish I received the following message:
    Message no. FL030
    Diagnosis
    You attempted to add a function module to a function group that is already full. A function group can contain a maximum of 99 function modules.
    Procedure
    Create a new function group or reorganize the existing one.
    Could you guys kindly guide me in how to create or reorganize the function groups in order to include the total of my custom fields?
    Thanks in advance!

    Hi,
    the issue has been investigated in the customer system.
    You're trying to create a table extension using EEWB and the table has 55 fields and each field has checktable.
    EEWB creates for each field with checktable 2 function modules. However, there is a limitation that one function group
    can contain only 99 function modules. That's why you got the error.
    Possible solutions can be following:
    1. Design question: Do you really need checktable for all fields? Do you need all 55 fields in one table? Otherwise, you can split it into two tables.
    2. Instead of using checktable, you can also use domain fixed values. For that you have to define your own data element and domain with fixed values.
    Regards,
    Steve

  • How to create the Set ID for report writer

    Hi
    I am suppose to create the Set id . Please suggest me the t-code etc for creating set id.
    Thanks
    Shiv

    transaction for  creating the set ID GS01
    further, the menu path  in the application menu is
    information system->Ad Hoc Reports ->Report Painter ->Report Writer ->Set
    if helpful, plz assign point as way of thanks

  • How to create attribute & set types with customer namespace COMM_ATTRSET?

    Hi CRM Gurus,
    I want to create some attributes and set types on CRM system with
    `/FITGL/` namespace but system is not allowed to create objects
    according. After debugging derives that SAP standart coding given below
    on LCOM_ATTRIBUTE_NEWF19 include.
    IF ( lv_systemname <> gc_sap_system ) AND
           ( iv_object_name(1) <> 'Y' AND iv_object_name(1) <> 'Z' ).
    Should we make an enhancement on this include? Is there any side
    efffects of this enhancement creating attribute & set types on CRM
    system during the packaging in terms of related with other attribute & set types objects?
    Kind Regards,
    Fahrettin

    Hi CRM Gurus,
    I want to create some attributes and set types on CRM system with
    `/FITGL/` namespace but system is not allowed to create objects
    according. After debugging derives that SAP standart coding given below
    on LCOM_ATTRIBUTE_NEWF19 include.
    IF ( lv_systemname <> gc_sap_system ) AND
           ( iv_object_name(1) <> 'Y' AND iv_object_name(1) <> 'Z' ).
    Should we make an enhancement on this include? Is there any side
    efffects of this enhancement creating attribute & set types on CRM
    system during the packaging in terms of related with other attribute & set types objects?
    Kind Regards,
    Fahrettin

  • How to create windows users and groups from Java

    Hi,
    Can any one please tell me, which Package/API will helps to create windows users and groups from Java.
    Thanks,
    M.Prem.

    You can't do it with pure Java, and it's not in the core API. You'd have to write a native function to do it, using whatever API Windows provides, and then call it with JNI. Or look for a third party native-based Java library that already does that.

  • How to create a profit center group using MDG-F?

    Given that there is a controlling area CA created in ECC. under which there is a standard profit center hierarchy let us call it ABCD created. Under ABCD, there is a Profit Center Group PCG01 already created in ECC. Now what steps (or screens) I should go through on MDG-F if I want to create another profit center group PCG02 that should be placed under PCG01? Thanks for your help.

    Hi ,
    First of all you need to create Profit Center from Create Change Request by selecting the change request type of PCTR Single Processing.
    Complete the all approval of the Profit center. Once your PCTR gets activated , it will go & sits into MDG tables ONLY.
    You have to make a replication setup of Local replication for replicating this created PCTR via MDG to the ECC Back end so that you can see the same data in the CEPC table.
    Once you are done with this, use Collective Processing form Change Request of PFCG role where you can create your PCTRG & PCTRH . You can assign the PCTR to PCTRG & PCTRH accordingly.
    Hope this answers your all questions.
    Best Regards,
    Kaustubh

Maybe you are looking for

  • Serial Number Error in YMFBF confirmation for semi-finished material.

    Dear Experts, We are having repetitive manufacturing scenario,while confirming the Semi-finished material ( X) in YMFBF Screen, after POST with Correction and Saving the Confirmation. Error Applied.... "Only the 0 serial numbers entered instead of 1.

  • Need help to write query

    Hi I have following table structure Name Type HOSTNAME VARCHAR2(30) COL1 VARCHAR2(30) COL2 VARCHAR2(30) data inthe table is like this HOSTNAME COL1          COL2 H1               Authorized          Allowed H1               Authorized          Allowe

  • No Listner Error

    I am using oracle 8 database.The machine that owns the database have two network card(have different IP address).The problem is that i can connect to oracle in One IP address.while iam trying to connect to oracle in another ip it shows no listner err

  • SAP Note 434495 (BRConnect and SAPDBA related)

    We have upgraded from 3.1 to 3.5 and from transaction DB13 we no longer have the option: 'Update InfoCube and Partition statistics'.  We have found a note 434495 which seems to mention that this is now accessible from transaction RZ21.  Can anyone sh

  • Customize CN41 Transaction

    Hi All, I have a requirement to clone CN41 tcode to ZCN41 and add some extra fields to the report. I have copied the CN41 trasaction to custom one and modified the report. I am able to add new columns to the report but not able to add data to the rep