How to get a list of groups with permission to publish?

Good evening, everyone.

Faced with such a problem working with APIs Classmates: you need to get the list of user groups in which it has rights for posting in the feed.

Method group.getUserGroupsV2 I get a list of all the groups of the user in response to coming ID-person groups. Information for these groups produced by the group.getInfo passing the ID of the last request.

Can't figure out how to weed out the groups that the user is not authorized for posting. Respective field I understand not? May be someone know good solution.

Thank you.
June 3rd 19 at 19:21
1 answer
June 3rd 19 at 19:23
Solution
the answer gives the "attrs" c flags for example "ap,at,gpt,gdt,av,ca,inv,gme,gps,gsa,gda,gta,gea,gph". If you suspect this attribute contains the permissions of the user. Is it really so? the information in the API is not found

Find more questions by tags Web DevelopmentAPIClassmates