XEP-0140: Shared Groups

Similar documents
XEP-0283: Moved. Tory Patnoe Version 0.1.1

XEP-0146: Remote Controlling Clients

XEP-0087: Stream Initiation

XEP-0099: IQ Query Action Protocol

XEP-0133: Service Administration

XEP-0033: Extended Stanza Addressing

XEP-0135: File Sharing

XEP-0412: XMPP Compliance Suites 2019

XEP-0114: Jabber Component Protocol

XEP-0104: HTTP Scheme for URL Data

XEP-0129: WebDAV File Transfers

XEP-0399: Client Key Support

XEP-0206: XMPP Over BOSH

XEP-0363: HTTP File Upload

XEP-0333: Chat Markers

XEP-0290: Encapsulated Digital Signatures in XMPP

XEP-0395: Atomically Compare-And-Publish PubSub Items

XEP-0357: Push Notifications

XEP-0052: File Transfer

XEP-0295: JSON Encodings for XMPP

XEP-0044: Full Namespace Support for XML Streams

XEP-0344: Impact of TLS and DNSSEC on Dialback

XEP-0361: Zero Handshake Server to Server Protocol

XEP-0009: Jabber-RPC

XEP-0059: Result Set Management

XEP-0056: Business Data Interchange

XEP-0289: Federated MUC for Constrained Environments

XEP-0293: Jingle RTP Feedback Negotiation

XEP-0042: Jabber OOB Broadcast Service (JOBS)

XEP-0341: Rayo CPA. Ben Langfeld Version 0.2

XEP-0060: Publish-Subscribe

XEP-0266: Codecs for Jingle Audio

XEP-0130: Waiting Lists

XEP-0171: Language Translation

XEP-0280: Message Carbons

XEP-0011: Jabber Browsing

XEP-0337: Event Logging over XMPP

XEP-0043: Jabber Database Access

XEP-0324: Internet of Things - Provisioning

XEP-0298: Delivering Conference Information to Jingle Participants (Coin)

XEP-0136: Message Archiving

XEP-0148: Instant Messaging Intelligence Quotient (IM IQ)

XEP-0050: Ad-Hoc Commands

XEP-0278: Jingle Relay Nodes

XEP-0340: COnferences with LIghtweight BRIdging (COLIBRI)

XEP-0284: Shared XML Editing

XEP-0045: Multi-User Chat

Additional License Authorizations for HPE OneView for Microsoft Azure Log Analytics

Intended status: Informational. B. Wyman October 2, 2007

Adobe Connect. Adobe Connect. Deployment Guide

CA File Master Plus. Release Notes. Version

Bar Code Discovery. Administrator's Guide

Splunk. Splunk. Deployment Guide

Epic. Epic Systems. Deployment Guide

XEP-0166: Jingle. Joe Beda

Packet Trace Guide. Packet Trace Guide. Technical Note

Ecma International Policy on Submission, Inclusion and Licensing of Software

Open Source Used In Cisco Configuration Professional for Catalyst 1.0

Moodle. Moodle. Deployment Guide

NTLM NTLM. Feature Description

LoadMaster VMware Horizon (with View) 6. Deployment Guide

IETF TRUST. Legal Provisions Relating to IETF Documents. Approved November 6, Effective Date: November 10, 2008

VMware vcenter Log Insight Manager. Deployment Guide

RSA Two Factor Authentication

Migration Tool. Migration Tool (Beta) Technical Note

Jabber, Inc. August 20, 2004

LoadMaster Clustering

X Generic Event Extension. Peter Hutterer

Ecma International Policy on Submission, Inclusion and Licensing of Software

IETF TRUST. Legal Provisions Relating to IETF Documents. February 12, Effective Date: February 15, 2009

Technics Audio Player User Guide

Altus Shared Data Experience (SDX)

Panasonic Audio Player 2 User Guide

ServerStatus Installation and Operation Manual

Hyper-V - Windows 2012 and 8. Virtual LoadMaster for Microsoft Hyper-V on Windows Server 2012, 2012 R2 and Windows 8. Installation Guide

MQ Port Scan Installation and Operation Manual

MERIDIANSOUNDINGBOARD.COM TERMS AND CONDITIONS

KEMP Driver for Red Hat OpenStack. KEMP LBaaS Red Hat OpenStack Driver. Installation Guide

Bar Code Discovery. Administrator's Guide

Request for Comments: 5437 Category: Standards Track Isode Limited January 2009

XEP-0313: Message Archive Management

XEP-0065: SOCKS5 Bytestreams

Distributed Intelligent Capture. Integration Guide

AMS Device Manager. Planning and Installation Guide May Version 13.5 Planning and Installation Guide

FONT SOFTWARE END USER LICENSE AGREEMENT. We recommend that you print this Font Software End User License Agreement for further reference.

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

User Guide. Calibrated Software, Inc.

Enterprise Payment Solutions. Scanner Installation April EPS Scanner Installation: Quick Start for Remote Deposit Complete TM

LoadMaster Clustering (Beta)

HTNG Web Services Product Specification. Version 2011A

Edge Security Pack (ESP)

MS Skype for Business. Microsoft Skype for Business Deployment Guide

MS Lync MS Lync Deployment Guide

Trimble. ecognition. Release Notes

Upgrading BankLink Books

Terms Of Use AGREEMENT BETWEEN USER AND DRAKE MODIFICATION OF THESE TERMS OF USE LINKS TO THIRD PARTY WEB SITES USE OF COOKIES

Quick Start Guide. BlackBerry Workspaces app for Android. Version 5.0

Feed Cache for Umbraco Version 2.0

XEP-0323: Internet of Things - Sensor Data

Simba Cassandra ODBC Driver with SQL Connector

Transcription:

XEP-0140: Shared Groups Peter Saint-Andre mailto:peter@andyetnet xmpp:stpeter@stpeterim https://stpeterim/ 2004-10-27 Version 02 Status Type Short Name Retracted Informational groups This document defines a protocol profile for centrally defined and administered roster groups; the protocol described herein has been retracted in favor of XEP-0144: Roster Item Exchange

Legal Copyright This XMPP Extension Protocol is copyright 1999 2017 by the XMPP Standards Foundation (XSF) Permissions Permission is hereby granted, free of charge, to any person obtaining a copy of this specification (the Specification ), to make use of the Specification without restriction, including without limitation the rights to implement the Specification in a software program, deploy the Specification in a network service, and copy, modify, merge, publish, translate, distribute, sublicense, or sell copies of the Specification, and to permit persons to whom the Specification is furnished to do so, subject to the condition that the foregoing copyright notice and this permission notice shall be included in all copies or substantial portions of the Specification Unless separate permission is granted, modified works that are redistributed shall not contain misleading information regarding the authors, title, number, or publisher of the Specification, and shall not claim endorsement of the modified works by the authors, any organization or project to which the authors belong, or the XMPP Standards Foundation Warranty ## NOTE WELL: This Specification is provided on an AS IS BASIS, WITHOUT WARRANTIES OR CONDI- TIONS OF ANY KIND, express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE ## Liability In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall the XMPP Standards Foundation or any author of this Specification be liable for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising from, out of, or in connection with the Specification or the implementation, deployment, or other use of the Specification (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if the XMPP Standards Foundation or such author has been advised of the possibility of such damages Conformance This XMPP Extension Protocol has been contributed in full conformance with the XSF s Intellectual Property Rights Policy (a copy of which can be found at <https://xmpporg/about/xsf/ipr-policy> or obtained by writing to XMPP Standards Foundation, PO Box 787, Parker, CO 80134 USA)

Contents 1 Introduction 1 2 Requirements 1 3 Use Cases 2 31 Creating a Shared Group 2 32 Adding a Member to the Group 2 33 Removing a Member from the Group 4 4 Implementation Guidelines 5 41 Group Hierarchies 5 42 Exchanging Presence 6 43 Sending Messages 6 44 Sending Groupchat Invites 6 5 Security Considerations 6 6 IANA Considerations 6 7 XMPP Registrar Considerations 7

2 REQUIREMENTS 1 Introduction XMPP IM 1 defines a protocol for personal rosters (also known as contact lists) So far all Jabber rosters are personal rosters that are defined by a single user and accessed only by that user However, in some contexts it would be helpful to centrally define and administer roster groups so that they can be shared among a user population in an organized fashion This functionality is often called shared groups One context in which shared groups might be useful is the enterprise environment For example, when Alice is hired by the marketing department of Big Company Enterprises, it makes sense for her to automatically have the other members of the marketing department in her roster the first time she logs in, and for the rest of the marketing department to have Alice in their rosters as soon as her account has been set up Similarly, when Bob in logistics gets fired, it makes sense for him to disappear from the rosters of everyone else in the logistics department This functionality is not limited to the enterprise environment It could prove quite useful in academic settings, social networking applications, consumer IM services, and anywhere else that it is important to build and manage small communities of users Although Roster Item Exchange (XEP-0093) 2 defines a format for sharing roster items between two users and therefore enables one user to send roster items to another user, it does not currently provide a way to share or coordinate a group of roster items in an organized fashion To make that possible, this document extends XEP-0093 by defining Publish-Subscribe (XEP-0060) 3 as the distribution mechanism, resulting in a basic solution for shared groups over Jabber 2 Requirements This document addresses the following use cases: 1 Creating a shared group 2 Adding a member to the group 3 Removing a member from the group This document does not address the following use cases, which instead are discussed in the Implementation Guidelines section of this document: Exchanging presence with members of a shared group 1 RFC 6121: Extensible Messaging and Presence Protocol (XMPP): Instant Messaging and Presence <http://tool sietforg/html/rfc6121> 2 XEP-0093: Roster Item Exchange <https://xmpporg/extensions/xep-0093html> 3 XEP-0060: Publish-Subscribe <https://xmpporg/extensions/xep-0060html> 1

3 USE CASES Sending a message to all members of a shared group Inviting all members of a shared group to a groupchat room 3 Use Cases The following examples show the protocol flow for an administrator to complete the use cases defined above Naturally, these tasks could be performed just as well by an automated application that is tied to an existing user database (eg, LDAP) 31 Creating a Shared Group A group is implemented as a pubsub node If a contact is a member of multiple groups, the contact MUST be added to each pubsub node separately There is a one-to-one relationship between a group and a node It is OPTIONAL for the NodeID to include the name of the group (eg, groups/marketing ), although in general it is best not to overload NodeIDs and this is unnecessary given the structure of the groups protocol as described below Listing 1: Admin Creates a Group <iq type = set from = bofh@example com / daygig to= pubsub example com id= create1 > <pubsub xmlns = http: // jabber org / protocol / pubsub > <create node -id= groups / Marketing / Europe /> </ pubsub > </iq > <iq type = result from = pubsub example com to= bofh@example com / daygig id= create1 /> Listing 2: Service Informs Admin of Success 32 Adding a Member to the Group There are two steps to adding a member to a group, which SHOULD be performed in this order: 1 Add new member to subscriber list (OPTIONAL) 2 Publish member information to node 2

3 USE CASES Listing 3: Admin Adds Member to Subscriber List <iq type = set from = bofh@example com / daygig to= pubsub example com id= sub1 > <pubsub xmlns = http: // jabber org / protocol / pubsub > <entities node = groups / Marketing / Europe > <entity jid = alice@example com affiliation = none subscription = subscribed / > </ entities > </ pubsub > </iq > <iq type = result from = pubsub example com to= bofh@example com / daygig id= sub1 /> Listing 4: Service Informs Admin of Success (Naturally, a member of a shared group need not be informed of changes to the group, and an entity that is informed of changes to the group need not be a member of the group However, in most applications a group member will be a pubsub subscriber and vice-versa) Now the admin publishes information about the member to the group node Listing 5: Admin Publishes Member Information <iq type = set from = bofh@example com / daygig to= pubsub example com id= pub1 > <pubsub xmlns = http: // jabber org / protocol / pubsub > <publish node = groups / Marketing / Europe > <item id= alice@example com > <x xmlns = jabber:x:roster jid = alice@example com name = Alice Rosenbaum > <group >Marketing / Europe </ group > </x> </ item > </ publish > </ pubsub > </iq > The member information is then delivered to all subscribers: Listing 6: Member Information is Delivered to All Subscribers 3

3 USE CASES <message from = pubsub example com to= cathy@example com > <event xmlns = http: // jabber org / protocol / pubsub # event > <items node = groups / Marketing / Europe > <item id= alice@example com > <x xmlns = jabber:x:roster jid = alice@example com name = Alice Rosenbaum > <group >Marketing / Europe </ group > </x> </ item > </ items > </ event > </ message > Note: It is the receiving application s responsibility to add the newly-published roster item to the recipient s roster by following the protocols defined in XMPP IM The receiving application SHOULD NOT prompt the recipient regarding whether or not to add the roster item, but if and only the roster item is received via pubsub (ie, it SHOULD prompt the user when roster items are received from individual users and not via pubsub) 33 Removing a Member from the Group There are two steps to adding a member to a group, which SHOULD be performed in this order: 1 Remove member from subscriber list 2 Purge member information from node Listing 7: Admin Removes Member from Subscriber List <iq type = set from = bofh@example com / daygig to= pubsub example com id= del1 > <pubsub xmlns = http: // jabber org / protocol / pubsub > <entities node = groups / Marketing / Europe > <entity jid = alice@example com affiliation = none subscription = none /> </ entities > </ pubsub > </iq > 4

4 IMPLEMENTATION GUIDELINES <iq type = result from = pubsub example com to= bofh@example com / daygig id= del1 /> Listing 8: Service Informs Admin of Success (As noted, the group member need not be a pubsub subscriber, in which case the foregoing step may not be necessary) Now admin can remove the member from the shared group Listing 9: Admin Removes Member <iq type = set from = bofh@example com / daygig to= pubsub example com id= purge1 > <pubsub xmlns = http: // jabber org / protocol / pubsub > <retract node = groups / Marketing / Europe > <item id= alice@example com /> </ retract > </ pubsub > </iq > All remaining subscribers are then informed that the node has been deleted: Listing 10: Tune Information is Delivered to All Subscribers <message from = pubsub example com to= cathy@example com > <event xmlns = http: // jabber org / protocol / pubsub # event > <retract node = groups / Marketing / Europe > <item id= alice@example com /> </ retract > </ event > </ message > 4 Implementation Guidelines 41 Group Hierarchies An administrator may wish to define a hierarchy of shared groups (eg, Marketing/Europe and Marketing/North America ) This can be done using collection nodes as defined in 5

6 IANA CONSIDERATIONS Section 9 of XEP-0060 The receiving application MAY use Nested Roster Groups (XEP-0083) 4 to define the roster group names 42 Exchanging Presence Presence is exchanged via the normal mechanisms defined in XMPP IM 43 Sending Messages In order to send a message to all members of a shared group, a group member s sending application (usually an end-user client) SHOULD either send multiple messages or use Extended Stanza Addressing (XEP-0033) 5 44 Sending Groupchat Invites In order to invite all members of a shared group to a groupchat room, a group member s sending application SHOULD use the mechanisms defined in Multi-User Chat (XEP-0045) 6 5 Security Considerations This protocol introduces no security considerations above and beyond those defined in XEP-0060: Publish-Subscribe and XEP-0093: Roster Item Exchange 6 IANA Considerations This document requires no interaction with the Internet Assigned Numbers Authority (IANA) 7 4 XEP-0083: Nested Roster Groups <https://xmpporg/extensions/xep-0083html> 5 XEP-0033: Extended Stanza Addressing <https://xmpporg/extensions/xep-0033html> 6 XEP-0045: Multi-User Chat <https://xmpporg/extensions/xep-0045html> 7 The Internet Assigned Numbers Authority (IANA) is the central coordinator for the assignment of unique parameter values for Internet protocols, such as port numbers and URI schemes For further information, see <http://wwwianaorg/> 6

7 XMPP REGISTRAR CONSIDERATIONS 7 XMPP Registrar Considerations This document requires no interaction with the XMPP Registrar 8 8 The XMPP Registrar maintains a list of reserved protocol namespaces as well as registries of parameters used in the context of XMPP extension protocols approved by the XMPP Standards Foundation For further information, see <https://xmpporg/registrar/> 7