ব্যবহারকারীর পরিচয় বৈশিষ্ট্য অ্যাক্সেস করুন
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
ব্যবহারকারীরা তাদের নিজস্ব ডেটা উত্স তৈরি করতে আপনার সম্প্রদায় সংযোগকারী ব্যবহার করবে৷ এই ডেটা উত্সগুলির জন্য, আপনার সংযোগকারী কার্যকর ব্যবহারকারীর পরিচয় অ্যাক্সেস করতে পারে৷ ডেটা সোর্স শংসাপত্রের উপর নির্ভর করে, কার্যকর ব্যবহারকারী ডেটা উত্স নির্মাতা (মালিকের শংসাপত্র) বা রিপোর্ট ভিউয়ার (দর্শকের শংসাপত্র) হতে পারে।
সুবিধা
- আপনি ব্যবহারকারীর পক্ষে Google পরিষেবা এবং APIগুলি অ্যাক্সেস করতে পারেন৷
- শুধুমাত্র প্রাসঙ্গিক ডেটা প্রদর্শিত হচ্ছে তা নিশ্চিত করতে আপনি কাস্টম অ্যাক্সেস নিয়ন্ত্রণ প্রয়োগ করতে পারেন।
- আপনি কার্যকর ব্যবহারকারীর জন্য ব্যবহারকারীর অভিজ্ঞতা কাস্টমাইজ করতে পারেন।
বাস্তবায়ন পদক্ষেপ
ব্যবহারকারী OAuth টোকেন অ্যাক্সেস করা হচ্ছে
আপনার সংযোগকারী ব্যবহারকারীর OAuth টোকেন পাস করে ব্যবহারকারীর পক্ষে Google পরিষেবা এবং API অ্যাক্সেস করতে পারে৷ আপনার সংযোগকারীতে কার্যকরী ব্যবহারকারীর OAuth টোকেন অ্যাক্সেস করতে, ScriptApp.getOAuthToken()
ব্যবহার করুন। getOAuthToken রেফারেন্স দেখুন। এই টোকেনে সংযোগকারী অনুমোদনের সময় অন্তর্ভুক্ত অনুমোদনের সুযোগ অন্তর্ভুক্ত থাকবে।
বেশিরভাগ সংযোগকারীর জন্য, Apps স্ক্রিপ্ট স্বয়ংক্রিয়ভাবে সনাক্ত করে যে স্ক্রিপ্ট পার্স এবং প্রক্রিয়াকরণের মাধ্যমে কোন স্কোপের প্রয়োজন। আপনি যেকোন সময় সংযোগকারী ব্যবহার করে স্কোপ দেখতে পারেন। আপনি URL স্ট্রিং ব্যবহার করে আপনার ম্যানিফেস্টে স্পষ্টভাবে স্কোপ সেট করতে পারেন। আপনি যদি ব্যবহারকারীর পক্ষ থেকে একটি Google পরিষেবা বা API অ্যাক্সেস করতে চান তবে ম্যানিফেস্টে সেই প্রাসঙ্গিক সুযোগটি অন্তর্ভুক্ত করুন৷
ব্যবহারকারীর ইমেল ঠিকানা অ্যাক্সেস করা
আপনার কোডে, আপনি Session.getEffectiveUser().getEmail()
দিয়ে বর্তমান কার্যকরী ব্যবহারকারীকে সনাক্ত করতে পারেন। getEffectiveUser রেফারেন্স দেখুন। এই কোড যোগ করলে স্বয়ংক্রিয়ভাবে https://www.googleapis.com/auth/userinfo.email
অনুমোদনের সুযোগ আপনার সংযোগকারীতে যোগ হবে।
উদাহরণ: ব্যবহারকারী OAuth টোকেন সহ Google API কল করা
- Google Fit সংযোগকারী কার্যকর ব্যবহারকারীর জন্য Google Fit API থেকে ডেটা নিয়ে আসে। API কল করার সময়, এটি কার্যকর ব্যবহারকারীর OAuth টোকেন পাস করে। বাস্তবায়নের বিবরণের জন্য সোর্স কোড দেখুন।
- Firestore সংযোগকারী কার্যকর ব্যবহারকারীর জন্য প্রকল্পের একটি তালিকা পেতে ক্লাউড রিসোর্স ম্যানেজার ব্যবহার করে। এই সংযোগকারীটি কার্যকরী ব্যবহারকারীর OAuth টোকেনও পাস করে। বাস্তবায়নের বিবরণের জন্য সোর্স কোড দেখুন।
উদাহরণ: ইমেল ঠিকানার উপর ভিত্তি করে isAdminUser()
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eCommunity Connectors allow you to build data sources that can access the effective user's identity, enabling personalized data retrieval.\u003c/p\u003e\n"],["\u003cp\u003eDepending on the data source credentials, the effective user can be either the data source creator or the report viewer.\u003c/p\u003e\n"],["\u003cp\u003eYour connector can leverage the user's OAuth token to access Google services and APIs on their behalf for custom data integrations.\u003c/p\u003e\n"],["\u003cp\u003eYou can tailor the user experience by implementing custom access control and using the user's email address for identification.\u003c/p\u003e\n"]]],[],null,["# Access user identity properties\n\nUsers will use your Community Connector to create their own data sources. For\nthese data sources, your connector can access the effective user's identity.\nDepending on the [Data source credentials](https://support.google.com/looker-studio/answer/6371135), the effective user can be the data\nsource creator (Owner's credentials) or the report viewer (Viewer's\ncredentials).\n\nBenefits\n--------\n\n- You can access Google services and APIs on behalf of the user.\n- You can implement custom access control to ensure only relevant data is being displayed.\n- You can customize the user experience for the effective user.\n\nImplementation steps\n--------------------\n\n### Accessing the user OAuth token\n\nYour connector can access Google services and APIs on behalf of the user by\npassing the user's OAuth token. To access the effective user's OAuth token in\nyour connector, use `ScriptApp.getOAuthToken()`. See [getOAuthToken reference](/apps-script/reference/script/script-app#getoauthtoken).\nThis token will include the [Authorization scopes](/apps-script/concepts/scopes) included during the connector\nauthorization.\n\nFor most connectors, Apps Script automatically detects what scopes are needed by\nparsing and processing the script. You can [view the scopes](/apps-script/concepts/scopes#viewing_scopes) a connector uses at\nany time. You can also [set scopes explicitly](/apps-script/concepts/scopes#setting_explicit_scopes) in your [manifest](/apps-script/concepts/manifests) using URL\nstrings. If you want to access a Google service or API on behalf of the user,\ninclude that relevant scope in the manifest.\n\n### Accessing the user email address\n\nIn your code, you can identify the current effective user with\n`Session.getEffectiveUser().getEmail()`. See [getEffectiveUser reference](/apps-script/reference/base/session#getEffectiveUser).\nAdding this code will automatically add the\n`https://www.googleapis.com/auth/userinfo.email` authorization scope to your\nconnector.\n\nExample: Calling Google APIs with user OAuth token\n--------------------------------------------------\n\n- The [Google Fit connector](https://lookerstudio.google.com/datasources/create?connectorId=AKfycbwFrL1OLXR3wqfnxowGFF3w3D4eq-54vAwjxDWcWRjiZMxX7jhII_1Ddx6y76GDHrxIew) fetches data from the Google Fit API for the effective user. While calling the API, it passes the effective user's OAuth token. See [the source code](https://github.com/googledatastudio/community-connectors/blob/master/google-fit/src/GoogleFit.js#L245) for implementation details.\n- The [Firestore connector](https://github.com/googledatastudio/community-connectors/tree/master/firestore) uses the Cloud Resource Manager to get a list of projects for the effective user. This connector also passes the effective user's OAuth token. See [the source code](https://github.com/googledatastudio/community-connectors/blob/master/firestore/src/GoogleCloud.gs#L30) for implementation details.\n\nExample: `isAdminUser()` based on email address\n-----------------------------------------------\n\n- The [Chrome UX Connector](http://g.co/chromeuxdash) maintains a list of admin users. It uses `getEffectiveUser()` and compares the effective user against the list to determine whether the effective user is an admin or not. See [implementation of `getEffectiveUser`](https://github.com/googledatastudio/community-connectors/blob/master/chrome-ux-report/src/Code.js#L581)."]]