Modify permission for Group Members on a forum via widget

Looking to create a widget that will add a new Forum to a group.  I don't want to alter my default permissions, but within this group I want group Members to NOT be able to create new discussions.  I don't want my group managers to have to go into the flyout to set this, but want to do it programmatically.

I was looking at core_v3_permission API but not quite sure how to set it.

Parents
  • Trying to do something like this, but it seems like the RoleId changes for each group I create... 

    #set($forumResponse = $core_v2_forum.Create($groupId, "Discussions"))

    #set($permissionId = $core_v2_utility.ParseGuid("dc04b058-a57c-4ac9-9ca9-921b9861c86e"))
    #set($applicationId = $forumResponse.ApplicationId)
    #set($isAllowed = false)
    #set($additionalInfoResponse = $core_v3_permission.Set($isAllowed, 531, $permissionId, "%{ ApplicationId = $applicationId }"))

Reply
  • Trying to do something like this, but it seems like the RoleId changes for each group I create... 

    #set($forumResponse = $core_v2_forum.Create($groupId, "Discussions"))

    #set($permissionId = $core_v2_utility.ParseGuid("dc04b058-a57c-4ac9-9ca9-921b9861c86e"))
    #set($applicationId = $forumResponse.ApplicationId)
    #set($isAllowed = false)
    #set($additionalInfoResponse = $core_v3_permission.Set($isAllowed, 531, $permissionId, "%{ ApplicationId = $applicationId }"))

Children