Hello community,
Context:
We have an application (eg.: APP Groups) to manage the security for a second application (eg.: APP Application) with all the necessary groups.
Our team have a requirement to allow the user to create a group without having to access the Appian Designer, so we are using the "create a group" smart service (https://docs.appian.com/suite/help/22.1/Create_Group_Smart_Service.html).
Problem:
This smart service works but it doesn't allow us to add the object in the groups application. There is any way to, when creating a group, passing the indication (through smart service or function, for example) that this group is to add to the group application?
We need to be able to move this objects through environments, so they need to live inside this application.
Thank you.
Discussion posts and replies are publicly visible
AFAIK, any dynamic groups created will not be added to the app via any configurations. If you're using manual deployments, how about checking for the Missing precedents and adding them all at once?
You might be able to do it via the Framework tools plugin - https://community.appian.com/b/appmarket/posts/framework-tools. There is a smart service "Add Objects to Application" which allows you to add objects to an application. I don't know if this plugin is cloud approved or not.
Adding group to an application only makes sense if you want to deploy these to another environment and these are actively referenced by the application objects. I do never add any dynamically created group to an application.
What is your use case?
Cool. This is something new for me too. Thanks for sharing
The way I've seen this done before is to imagine there are two classes of Group. One you can consider to be a group that represents a "service" - that offers up the relevant functionality within your application. This is static and is attached at design-time to the object(s) that you want to expose your your different user communities. The other type of group you can consider to define the role(s) that you want your user communities to have. These can be created a run-time and, to meet your use case, can also be dynamically added to (or removed in the future) from the static groups you've defined. Think of the static groups as power sockets and your dynamic groups as plugs. You can create dynamic groups at run-time and plug them into your static power sockets. The art in this model is in defining the scope of the functionality you want to be able to expose to your user communities.