BCA / B.Tech 7 min read

What is Sharing Rules & Roles in Hindi

RK

लेखक Ratan Kumawat · संस्थापक, NotesMedia

प्रकाशित:

त्वरित सारांश और मुख्य बिंदु

  • • विषय फोकस: Salesforce Notes in Hindi | सेल्सफोर्स नोट्स हिंदी में (BCA / B.Tech Syllabus)
  • • मुख्य विषय: What is Sharing Rules & Roles in Hindi - General Topics
  • • अवलोकन: Quick Answer: Salesforce में Roles (Role Hierarchy) और Sharing Rules दोनों Record-Level Security के मुख्य टूल्स हैं। Roles एक vertical hierarchy बनाते ह...
  • • मुख्य अवधारणाएं: Sharing rules in Salesforce, Salesforce roles, Sharing rules and roles Hindi, Salesforce data sharing,
Quick Answer: Salesforce में Roles (Role Hierarchy) और Sharing Rules दोनों Record-Level Security के मुख्य टूल्स हैं। Roles एक vertical hierarchy बनाते हैं जिससे ऊपर के managers अपने नीचे के subordinates के records को automatically देख और edit कर सकते हैं। वहीं Sharing Rules lateral (horizontal) access देने के लिए automatic exceptions बनाते हैं—यानी जब OWD (Organization-Wide Defaults) Private या Public Read Only हो, तब अलग-अलग teams या groups के बीच records share करने के लिए Sharing Rules का use होता है। ध्यान रहे कि Sharing Rules केवल access expand कर सकते हैं, restrict कभी नहीं कर सकते।

Salesforce Data Security Model क्या है?

Salesforce में data security को चार levels पर implement किया जाता है:

  1. Organization Level: Login hours, trusted IP ranges, password policies.
  2. Object Level: Profiles और Permission Sets से तय होता है कि user किस object (जैसे Lead, Account, Opportunity) पर Create, Read, Edit, Delete (CRED) कर सकता है। Profiles के बारे में detail में जानने के लिए how to create profile in Hindi पढ़ें।
  3. Field Level Security (FLS): किसी record के अंदर specific fields को visible या read-only बनाना।
  4. Record Level Security: तय करता है कि अगर दो users के पास एक ही object का Read/Edit access है, तो वे एक-दूसरे के specific records को देख सकते हैं या नहीं। Record-level access को कंट्रोल करने वाले चार पिलर्स हैं: OWD, Role Hierarchy, Sharing Rules, और Manual Sharing। OWD की पूरी जानकारी के लिए OWD in Salesforce in Hindi देखें।
Advertisement

Salesforce में Roles (Role Hierarchy) क्या हैं?

Salesforce में Role Hierarchy एक organizational tree structure होता है जो कंपनी के reporting structure को दर्शाता है—जैसे CEO → VP of Sales → Sales Manager → Sales Representative।

Role Hierarchy का मूल नियम यह है:

  • Hierarchy में ऊपर बैठे users automatically अपने नीचे (subordinates) के users के create किए गए records का access प्राप्त कर लेते हैं।
  • Standard Objects (Account, Contact, Opportunity) के लिए Role Hierarchy हमेशा active रहती है।
  • Custom Objects के लिए आप "Grant Access Using Hierarchies" चेकबॉक्स को enable या disable कर सकते हैं।
  • User create करते समय उसे एक specific Role assign किया जाता है। how to create user in Hindi में step-by-step प्रोसेस समझाई गई है।

Salesforce में Sharing Rules क्या हैं?

जब आपकी OWD setting Private या Public Read Only होती है, तो Role Hierarchy केवल vertical दिशा में access देती है। लेकिन अगर horizontal दिशा में (जैसे Sales Team और Marketing Team के बीच, या Jaipur Branch और Delhi Branch के बीच) records share करने हों, तो Sharing Rules का उपयोग किया जाता है।

Sharing Rules automatic security exceptions होते हैं जो baseline OWD access को expand करते हैं।

Sharing Rules के दो मुख्य प्रकार (Types):

  1. Owner-Based Sharing Rules: यह नियम record के owner के आधार पर काम करता है। उदाहरण: "North Region Sales Reps के owned सभी Account records को South Region Sales Managers के साथ Read-Only share करो।"
  2. Criteria-Based Sharing Rules: यह नियम record के अंदर मौजूद field values (criteria) के आधार पर काम करता है, भले ही owner कोई भी हो। उदाहरण: "यदि Case object की Priority = 'High' हो, तो उसे तुरंत Senior Support Team को Read/Write share करो।"

Roles बनाम Sharing Rules: मुख्य अंतर (Comparison Table)

Salesforce exams और technical interviews में Roles और Sharing Rules के बीच तुलना सबसे महत्वपूर्ण टॉपिक है:

Comparison Parameter Roles (Role Hierarchy) Sharing Rules
Security Direction Vertical Sharing: नीचे से ऊपर (Subordinate से Manager की तरफ)। Horizontal / Lateral Sharing: अलग-अलग departments या groups के बीच।
Base Dependency OWD के साथ सीधे जुड़ा है; baseline access को vertically बढ़ाता है। OWD Private या Read-Only होने पर security exceptions बनाता है।
Configuration Basis Company का Organizational Chart और reporting lines. Record Ownership या Record Field Criteria.
Sharing Targets सीधे manager roles और उनके parent roles को access मिलता है। Public Groups, Roles, Roles and Subordinates को share किया जा सकता है।
Access Levels Read, Edit (Subordinate के record level के अनुसार). Read-Only या Read/Write.
Disable Option Custom objects पर checkbox से off किया जा सकता है; standard पर हमेशा on. कभी भी rule deactivate या delete किया जा सकता है।

Owner-Based बनाम Criteria-Based Sharing Rules

Salesforce administrator को यह तय करना होता है कि कौन सा Sharing Rule type उपयोग करना है:

Feature Owner-Based Sharing Rule Criteria-Based Sharing Rule
Sharing Trigger Record के Owner के role, public group या territory के आधार पर। Record के specific Field values (जैसे Status, Revenue, City) के आधार पर।
Ownership Change Effect यदि record owner बदल जाए, तो sharing access dynamically recalculate होकर बदल जाता है। Owner बदलने पर कोई फर्क नहीं पड़ता; जब तक field criteria match है, access रहेगा।
Salesforce Limits प्रति object कुल (owner + criteria) अधिकतम 300 sharing rules बन सकते हैं। इन 300 में से अधिकतम 50 ही criteria-based हो सकते हैं।
Real Example West Zone Reps के सभी leads को Head Office Lead Managers के साथ share करना। Annual Revenue > 10,00,000 वाले सभी Accounts को Enterprise Sales Group से share करना।

Real-World Example Scenario: Jaipur Auto Parts Ltd.

आइए इसे एक वास्तविक कंपनी के उदाहरण से समझें:

  1. कंपनी का सेटअप: Jaipur Auto Parts में दो अलग-अलग branches हैं: Jaipur Sales Team और Udaipur Sales Team। दोनों teams Lead object पर काम करती हैं।
  2. OWD Setting: Lead object की OWD setting Private रखी गई है, ताकि Jaipur वाले Udaipur के leads न देख सकें और Udaipur वाले Jaipur के leads न देख सकें।
  3. Role Hierarchy का असर:
    • Jaipur Sales Rep (Subordinate) → Jaipur Sales Manager (Can see all Jaipur Leads).
    • Udaipur Sales Rep (Subordinate) → Udaipur Sales Manager (Can see all Udaipur Leads).
    • Rajasthan VP of Sales (Top role): यह Jaipur और Udaipur दोनों branches के सभी managers और reps के records देख और edit कर सकते हैं।
  4. Sharing Rule की जरूरत: कंपनी की Management चाहती है कि यदि कोई Lead "VIP Customer" (Rating = 'Hot') मार्क की जाए, तो Jaipur और Udaipur दोनों के Managers उसे संयुक्त रूप से देख सकें।
  5. Solution: Administrator एक Criteria-Based Sharing Rule बनाएगा:
    Criteria: Lead.Rating EQUALS 'Hot'
    Share With: Public Group "All Regional Managers"
    Access Level: Read-Only
Advertisement

Salesforce में Sharing Rule कैसे Configure करें? (Step-by-Step)

Administrator के रूप में Setup में जाकर Sharing Rule बनाने का मानक तरीका:

  1. Salesforce में Login करें और ऊपर दाएँ कोने में Setup (Gear Icon) पर click करें।
  2. Quick Find box में Sharing Settings टाइप करें और select करें।
  3. Manage sharing settings for ड्रॉपडाउन से desired object चुनें (जैसे Account या Lead)।
  4. नीचे scroll करके [Object] Sharing Rules सेक्शन में जाएँ और New बटन पर click करें।
  5. Rule Details भरें:
    • Label: जैसे Hot Leads Sharing with Managers.
    • Rule Type: Based on record owner या Based on criteria चुनें।
    • Select which records to be shared: criteria define करें (उदा. Field: AnnualRevenue, Operator: greater than, Value: 500000)।
    • Select users to share with: Public Groups, Roles, या Roles and Internal Subordinates चुनें।
    • Select access level: Read-Only या Read/Write चुनें।
  6. Save पर click करें। Salesforce background में sharing recalculation चलाएगा और rule active हो जाएगा।

विद्यार्थी अक्सर क्या गलतियां करते हैं? (Common Student Mistakes)

  • Sharing Rules से Access कम करने की कोशिश करना: सबसे बड़ी गलतफहमी यह है कि छात्र सोचते हैं Sharing Rules से access restrict किया जा सकता है। याद रखें: Salesforce Security Model हमेशा Grant-Based है। OWD सबसे सख्त (most restrictive) baseline है; Role Hierarchy और Sharing Rules केवल access बढ़ाते (open up) हैं, कभी restrict नहीं करते।
  • Profiles और Roles में अंतर न समझना: Profile यह तय करती है कि "User किस feature/object पर क्या काम (CRED) कर सकता है?" जबकि Role तय करता है कि "User कौन से records देख सकता है?" Profile के बिना user Salesforce में login नहीं कर सकता, लेकिन Role optional होता है।
  • OWD Public Read/Write होने पर Sharing Rule बनाना: यदि OWD पहले से Public Read/Write है, तो संगठन के सभी users को सभी records का पूरा access पहले से है। ऐसे में Sharing Rule बनाने का कोई तकनीकी औचित्य नहीं होता।

Exam के लिए Important Questions

Short Questions (2 से 5 अंक)

  1. Salesforce में Role Hierarchy का मुख्य सिद्धांत क्या है?
  2. Owner-based और Criteria-based Sharing Rules में क्या अंतर है?
  3. क्या Sharing Rules के जरिए किसी record का access छीना या restrict किया जा सकता है?
  4. Custom Objects में "Grant Access Using Hierarchies" विकल्प का क्या महत्व है?
  5. Public Groups का उपयोग Sharing Rules में क्यों किया जाता है?

Long Questions (10 से 20 अंक)

  1. Salesforce Data Security Architecture की detail में व्याख्या कीजिए। OWD, Role Hierarchy, Sharing Rules और Manual Sharing का आपसी संबंध समझाइए।
  2. Roles और Sharing Rules के बीच तुलनात्मक अंतर स्पष्ट कीजिए। एक Multi-branch कंपनी के उदाहरण के साथ पूरा record sharing setup समझाइए।
  3. Salesforce में Criteria-based Sharing Rules बनाने के स्टेप्स लिखिए और इसकी सीमाओं (Limitations) पर चर्चा कीजिए। अधिक प्रश्नों के लिए Salesforce important questions MDSU देखें।

FAQs

Q1: क्या Salesforce में एक user को एक से अधिक Roles assign किए जा सकते हैं?

नहीं, Salesforce में प्रत्येक user के पास एक समय में केवल एक ही Role हो सकता है, जबकि वह एक से अधिक Public Groups का सदस्य बन सकता है।

Q2: यदि Role Hierarchy में Manager के पास Object का Read permission ही न हो, तो क्या वह subordinate का record देख पाएगा?

नहीं। Profile level permissions (Object-Level Security) हमेशा Role Hierarchy से ऊपर होती हैं। यदि Manager की Profile में Object के लिए Read permission नहीं है, तो Role Hierarchy में ऊपर होने के बावजूद वह record नहीं देख सकेगा।

Q3: Manual Sharing क्या है और यह Sharing Rules से कैसे भिन्न है?

Sharing Rules automatic होते हैं और criteria के आधार पर bulk records शेयर करते हैं, जबकि Manual Sharing में record owner मैन्युअली "Share" बटन दबाकर किसी विशेष user या group को एक अकेला record share करता है।

अक्सर पूछे जाने वाले प्रश्न (FAQs)

Quick Answer: Salesforce में Roles (Role Hierarchy) और Sharing Rules दोनों Record-Level Security के मुख्य टूल्स हैं।
Salesforce Notes in Hindi | सेल्सफोर्स नोट्स हिंदी में के पाठ्यक्रम में What is Sharing Rules & Roles in Hindi एक महत्वपूर्ण अध्याय है। यह मुख्य सिद्धांतों, परीक्षा प्रश्नों और सूत्रों को समझने के लिए अत्यधिक आवश्यक है।
हाँ, NotesMedia पर आपको What is Sharing Rules & Roles in Hindi के महत्वपूर्ण प्रश्नोत्तर, हल किए गए उदाहरण और नोट्स बिल्कुल मुफ्त मिलेंगे। अधिक अभ्यास के लिए आप हमारा ऐप भी डाउनलोड कर सकते हैं।
Advertisement

In this Chapter

What is Sharing Rules & Roles in Hindi
Salesforce क्या है? - Components of Salesforce
Cloud Computing in Hindi – क्लाउड कंप्यूटिंग क्या है?
What is IaaS, PaaS, SaaS, FaaS in Hindi
Cloud computing Salesforce in Hindi
Cloud computing difference ERP and CRM In Hindi
Cloud computing Web Services In Hindi
What is AppExchange in Hindi
Cloud computing Salesforce Mobile support In Hindi
Cloud computing Introduction Of Force.com In Hindi | क्लाउड कंप्यूटर फोर्स.कॉम प्लेटफार्म का परिचय इन हिन्दी
Cloud Computing SalesForce Setup Page in Hindi
Create Application In SalesForce In Hindi
Create Object In SalesForce In Hindi
Lookup In SalesForce In Hindi
Create Tabs In SalesForce In Hindi
ERP In Salesforce In Hindi | ERP इनसेल्सफोर्स इन हिन्दी
CRM In Salesforce In Hindi | CRM इनसेल्सफोर्स इन हिन्दी
What is Field in salesforce in Hindi | सेल्सफोर्स में फील्ड क्या है फ़िल्ड
Link Creation & custom button in Hindi | लींक क्रिएशन और कस्टम बटन इन हिंदी
Manage security In Hindi | मैनेज सिक्यूरिटी इन हिंदी
Governor Limites in Hindi | गवर्नर लिमिटस इन हिंदी
How to Create profile in Hindi | प्रोफाइल केसे बनाये इन हिंदी
How to Create user in Hindi | यूजर केसे बनाये इन हिंदी
OWD in salesforce in Hindi
Record Based Sharing in Hindi
Password Policies in Hindi
User Session In Hindi
Trusted IP Range in Hindi
Public Group in Hindi
Sales Cloud in Hindi
Contract & Service Object in Hindi
Component of Service in Hindi
Create Approval Process in Hindi
Create Email Template in Hindi
Create Custom Profile In Hindi
Create New User In Hindi
Approval Process Test in Hindi
Workflow in Hindi
Workflow Rules & Workflow Actions in Hindi
Email Task & Updates in Hindi
Queue & Time-Dependent Workflow Action in Hindi
Immediate Action In Hindi
Workflow Immediate Action & Time-Dependent Workflow in Hindi Action
Process Builder In Hindi
Create Process Builder In Hindi
Diffrence beetween Process Builder & Workflow In Hindi
Create Records & Tools in Hindi
What is Reports & Types In Hindi
Create Report in Hindi
Create Dashboard & Editing in Hindi
Dashboard Snapshots To Home Page in Hindi
Create Additional Report in Hindi
Create Custom Report types in Hindi
Design Home Page in Hindi
Salesforce All Important Questions and Answers in Hindi (MDSU)
BCA || Salesforce 2025 Paper || MDSU Exam Paper
BCA | Salesforce 2023 Paper | MDSU Exam Paper
BCA || Salesforce Supplementary2023 Paper || MDSU Exam Paper