@cli.register_custom_action('<STR_LIT>', ('<STR_LIT>', '<STR_LIT>'),<EOL>('<STR_LIT>', ))<EOL><INDENT>@exc.on_http_error(exc.GitlabCreateError)<EOL>def share(self, group_id, group_access, expires_at=None, **kwargs):<DEDENT>
path = '<STR_LIT>' % self.get_id()<EOL>data = {'<STR_LIT>': group_id,<EOL>'<STR_LIT>': group_access,<EOL>'<STR_LIT>': expires_at}<EOL>self.manager.gitlab.http_post(path, post_data=data, **kwargs)<EOL>
Share the project with a group.

        Args:
            group_id (int): ID of the group.
            group_access (int): Access level for the group.
            **kwargs: Extra options to send to the server (e.g. sudo)

        Raises:
            GitlabAuthenticationError: If authentication is not correct
            GitlabCreateError: If the server failed to perform the request