Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
2 replies
Subscribers
5 subscribers
Views
1257 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Plug-Ins
Hi I am creating a new Appian group ( public group) using smart servi
sivananthag
over 10 years ago
Hi
I am creating a new Appian group ( public group) using smart service. My code for group creation is:
try{
ServiceContext adminContext = ServiceLocator.getAdministratorServiceContext();
GroupTypeService grpTypeService = ServiceLocator.getGroupTypeService(adminContext);
ServiceContext adminContext = ServiceLocator.getAdministratorServiceContext();
GroupService grpService = ServiceLocator.getGroupService(adminContext);
Group grp2 = new Group(Group.SECURITYMAP_PUBLIC,"mycustompublicgroup");
Long customgroupTypeId = grpTypeService.getGroupTypeId("Custom");
grp2.setGroupTypeId(customgroupTypeId);
long groupId2 = grpService.createGroup(grp2);
System.out.println("groupid for mycustompublicgroup ="+groupId2);
catch(Exception e){
e.printStackTrace();
}
When I executed the above code, new custom group "mycustompublicgroup" got created with security settings (security type) as "personal" and membership policy as "closed" and viewing policy as "high"
I expected s...
OriginalPostID-136562
OriginalPostID-136562
Discussion posts and replies are publicly visible
Parents
0
Ricardo Galvan
Appian Employee
over 10 years ago
Once you have created the Group, you can update it using:
forum.appian.com/.../GroupService.html
There you can set the securityMapId to whatever setting fits you best.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Ricardo Galvan
Appian Employee
over 10 years ago
Once you have created the Group, you can update it using:
forum.appian.com/.../GroupService.html
There you can set the securityMapId to whatever setting fits you best.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data