문제

I can create a google calendar in my Java app.

I can assign it to a particular user in my Google domain:

AclRule rule = new AclRule();
Scope scope = new Scope();

scope.setType("user");
scope.setValue("user1@mydomain.com");

rule.setScope(scope);
rule.setRole("reader");

and the created calendar appears in user1's calendars.

Yet when I try to assign some other calendar to a group (which said user1 belongs to):

AclRule rule = new AclRule();
Scope scope = new Scope();

scope.setType("group");
scope.setValue("group1@mydomain.com");

rule.setScope(scope);
rule.setRole("reader");

user1 couldn't see the created calendar in his calendar list.

But the calendar is created successfully.

Is this correct functionality? Or should I just add Acl rule per group user? Or I am doing something wrong and there is other way to assign some calendar to all the users in a group?

도움이 되었습니까?

해결책 2

When assigning Calendar access to a group, every group user gets an invitation to said Calendar.

다른 팁

for future people running into problems: I had this issue and it's because the creator of the calendar wasn't in the group. Make sure the "sharer" is in the google group you are sharing your calendar with

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top