airavata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (AIRAVATA-2662) One-Time Migration to Create the "everyone" Group for all Domains
Date Mon, 26 Feb 2018 20:37:00 GMT


ASF GitHub Bot commented on AIRAVATA-2662:

machristie commented on a change in pull request #168: [AIRAVATA-2662] Adding Migrator class
to create everyone group in all domains

 File path: airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/
 @@ -338,6 +338,20 @@ public String addGateway(AuthzToken authzToken, Gateway gateway) throws
             permissionType.setDescription("Write permission type");
+            //Create an "everyone" group for the domain
+            String groupId = "everyone@" + domain.domainId;
+            UserGroup userGroup = new UserGroup();
+            userGroup.setGroupId(groupId);
+            userGroup.setDomainId(domain.domainId);
+            userGroup.setGroupCardinality(GroupCardinality.MULTI_USER);
+            userGroup.setCreatedTime(System.currentTimeMillis());
+            userGroup.setUpdatedTime(System.currentTimeMillis());
+            userGroup.setOwnerId(authzToken.getClaimsMap().get(Constants.USER_NAME));
 Review comment:
   OwnerId should be in the form "username@domainId"

This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

> One-Time Migration to Create the "everyone" Group for all Domains
> -----------------------------------------------------------------
>                 Key: AIRAVATA-2662
>                 URL:
>             Project: Airavata
>          Issue Type: Improvement
>            Reporter: Sneha Tilak
>            Assignee: Sneha Tilak
>            Priority: Major
> One-time migration to create and populate the “everyone” group for all existing domains
and share all the existing application deployments with the group.

This message was sent by Atlassian JIRA

View raw message