Are there plugins to create user group during run-time?

Are there plugins to create user group during run-time?

OriginalPostID-224415

OriginalPostID-224415

  Discussion posts and replies are publicly visible

Parents
  • @sudhak, The solution given by Sikhivahans is a good one. It will get the job done. However, if you are looking for a function like a!createCustomGroup which is there in Appian 16.2, then I have created a plugin. I have created an expression function which can be used with bind(). It creates a custom group at runtime. Please find the attached zip file. you can go through the code - it works but is not perfect. I have not added validations for the different parameters the function takes. My expression function also has the name createcustomgroup().

    SAIL example to use the plugin function created:
    load(

    local!grpName: fn!bind({}, createcustomgroup(
    name: _,
    description: "New group",
    delegatedCreation: true,
    membershipPolicy: "AUTOMATIC",
    securityType: "PUBLIC",
    groupPrivacy: "LOW"
    )) ,

    a!formLayout(

    label: "Test group Add",
    firstColumnContents: {
    a!textField(
    label: "Group Name",
    value: local!grpName,
    saveInto: local!grpName
    )
    }
    )

    )
Reply
  • @sudhak, The solution given by Sikhivahans is a good one. It will get the job done. However, if you are looking for a function like a!createCustomGroup which is there in Appian 16.2, then I have created a plugin. I have created an expression function which can be used with bind(). It creates a custom group at runtime. Please find the attached zip file. you can go through the code - it works but is not perfect. I have not added validations for the different parameters the function takes. My expression function also has the name createcustomgroup().

    SAIL example to use the plugin function created:
    load(

    local!grpName: fn!bind({}, createcustomgroup(
    name: _,
    description: "New group",
    delegatedCreation: true,
    membershipPolicy: "AUTOMATIC",
    securityType: "PUBLIC",
    groupPrivacy: "LOW"
    )) ,

    a!formLayout(

    label: "Test group Add",
    firstColumnContents: {
    a!textField(
    label: "Group Name",
    value: local!grpName,
    saveInto: local!grpName
    )
    }
    )

    )
Children
No Data