Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible that anyone can join meeting who have meeting link without asking for ask to join? #3288

Closed
MOIN-AKHTAR opened this issue Jul 14, 2023 · 2 comments
Labels
priority: p3 Desirable enhancement or fix. May not be included in next release. type: question Request for information or clarification. Not an issue.

Comments

@MOIN-AKHTAR
Copy link

MOIN-AKHTAR commented Jul 14, 2023

I have created a calander event with google meet link via nodejs now i want to make meet link in such away that anyone who have goole meet link can join call without getting button like ask to join.

const { google } = require("googleapis");
const credential = require("./service-account.json");

const createEvent = async () => {
  try {
    const requestId = Math.floor(Math.random() * 100000);
    console.log(requestId);
    const auth = new google.auth.JWT(
      credential.client_email,
      null,
      credential.private_key,
      ["https://www.googleapis.com/auth/calendar"],
      "googleAdminEmail",
      credential.client_id
    );
    const calendar = google.calendar({ version: "v3", auth });
    const event = {
      summary: "Appointment",
      description: "Meeting with client",
      start: {
        dateTime: "2023-07-14T10:00:00",
        timeZone: "Asia/Karachi",
      },
      end: {
        dateTime: "2023-07-14T11:00:00",
        timeZone: "Asia/Karachi",
      },
      conferenceData: {
        createRequest: {
          requestId,
          conferenceSolutionKey: {
            type: "hangoutsMeet",
          },
        },
      },
    };
    const response = await calendar.events.insert({
      calendarId: "primary",
      resource: event,
      conferenceDataVersion: 1,
    });

    console.log("Event created: %s", response.data.htmlLink);
    console.log("Google Meet link: %s", response.data.hangoutLink);
    return;
  } catch (error) {
    console.log(error);
  }
};

createEvent();
@MOIN-AKHTAR MOIN-AKHTAR added priority: p3 Desirable enhancement or fix. May not be included in next release. type: question Request for information or clarification. Not an issue. labels Jul 14, 2023
@MOIN-AKHTAR MOIN-AKHTAR changed the title Is it possible to create calander event with google meet link in such away that anyone who have that link can join meeting without getting button like ask to join via nodejs? Anone can join meeting who have meeting link without asking for ask to join? Jul 14, 2023
@MOIN-AKHTAR MOIN-AKHTAR changed the title Anone can join meeting who have meeting link without asking for ask to join? Is it possible that anyone can join meeting who have meeting link without asking for ask to join? Jul 14, 2023
@Iamshivam-dev
Copy link

Hey @MOIN-AKHTAR can you please let me know if it is possible or not? If yes then how?

@gulshanAI
Copy link

gulshanAI commented Jan 5, 2025

Google Meet's security policies have changed, and it's no longer possible to create a completely open meeting without any access control through the API alone.

But here is a alternative solution

You could add all expected participants as guests to the event, giving them direct access. However, this would require knowing their email addresses in advance.

Here is how your event look like

  const attendeeEmails = ["[email protected]"];

  const event = {
    summary: "Google Meet Meeting",
    start: {
      dateTime: new Date().toISOString(),
      timeZone: "UTC",
    },
    end: {
      dateTime: new Date(Date.now() + 3600000).toISOString(), // 1 hour from now
      timeZone: "UTC",
    },
    conferenceData: {
      createRequest: {
        requestId: Date.now().toString(),
        conferenceSolutionKey: { type: "hangoutsMeet" },
        conferenceDataVersion: 1,
      },
      entryPoints: [
        {
          entryPointType: "video",
          uri: "",
          label: "meet.google.com",
        },
      ],
    },
    visibility: "public",
    transparency: "transparent",
    guestsCanModify: false,
    attendees: attendeeEmails.map((email) => ({
      email,
      responseStatus: "accepted",
    })),
  };

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p3 Desirable enhancement or fix. May not be included in next release. type: question Request for information or clarification. Not an issue.
Projects
None yet
Development

No branches or pull requests

4 participants
@gulshanAI @MOIN-AKHTAR @Iamshivam-dev and others