Internet-Draft | draft-hunt-scim-mv-filtering | October 2021 |
Hunt | Expires 26 April 2022 | [Page] |
The System for Cross-Domain Identity Management (SCIM) specifications define a profile of HTTP protocol and a schema that enable managing identities in cross-domain scenarios. This specification extends SCIM protocol resource retrieval and query functions to enable paging and filtering of multi-valued attributes in a SCIM service provider resource.¶
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.¶
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.¶
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."¶
This Internet-Draft will expire on 4 April 2022.¶
Copyright (c) 2021 IETF Trust and the persons identified as the document authors. All rights reserved.¶
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Simplified BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified BSD License.¶
SCIM Protocol [RFC7644] is an application-level, HTTP protocol for provisioning and managing identity data on the web and in cross-domain environments such as enterprise to cloud, or inter-cloud scenarios. The protocol supports creation, modification, retrieval, and discovery of core identity resources such as Users and Groups, as well as custom resources and resource extensions.¶
The definition of resources, attributes, and overall schema are defined in the SCIM Core Schema document (see [RFC7643]).¶
This specification extends SCIM resource retrieval and query functions to enable filtering and paging of mulit-valued attributes. For example, attributes that may contain large numbers of values such as a SCIM Group.¶
This document is intended as a guide to extend SCIM protocol usage for both SCIM HTTP service providers and HTTP clients who may provision information to service providers or retrieve information from them.¶
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in [RFC2119]. These keywords are capitalized when used to unambiguously specify requirements of the protocol or application features and behavior that affect the interoperability and security of implementations. When these words are not capitalized, they are meant in their natural-language sense.¶
For purposes of readability examples are not URL encoded. Implementers MUST percent encode URLs as described in Section 2.1 of [RFC3986].¶
Throughout this documents all figures may contain spaces and extra line-wrapping for readability and space limitations. Similarly, some URI's contained within examples, have been shortened for space and readability reasons.¶
This specification uses the definitions from the SCIM Schema Specification [RFC7643] and the SCIM Protocol Specification [RFC7644].¶
Detecting the availability of multi-valued attribute filtering and paging extension is covered in Section 3.¶
When supported, returned values for multi-valued attributes can
be filtered or paged using filters and/or paging parameters
appended to attributes specified in the SCIM attributes
parameter. Attributes listed in
the attributes parameter MAY be appended with value qualifiers
using square brackets("[ ]") that contains a
valFilter
(see Figure 1 [RFC7644]), paging parameters
(see
Section 3.9 [RFC7644]), or a combination of both
separated by the &
character.¶
In order to qualify specific attributes without changing the
default list of attributes returned for a query, an asterix
*
MAY be used in the attributes
parameter to indicate the default set of attributes is to be
returned in addition to any specific attributes listed. For
example: attributes=*,members[type eq
"user"]
specifies all default attributes are to be
returned and only values of members
which have type
set to user
.¶
When an attribute has a multi-value filter or paging qualifier,
the service provider SHALL include additional
meta
sub-attributes (see Section 3.1 of [RFC7643]). The name of the multi-valued attribute plus
the String cnt
is used to indicate
the count of attribute values available expressed as an Integer (see
Section 2.3.4 of [RFC7643]). When a
valFilter
expression is used, the
number SHALL indicate the total number of matches that may be
returned based on the filter. When no filter expression is
specified, the number SHALL indicate the total number of values.
For an example, see
emails.cnt
inFigure 2.
This count indicates that there is only one value with type
equal to work
.¶
When startIndex
is used as an
attribute paging qualifier and the value is greater than the
number of values, the server SHALL omit the attribute from the
result to indicate no values exist at that index.¶
In the following example, a user is returned, but only work
emails are to be returned.¶
The service provider responds with:¶
In the following example, all Groups are searched and
only Groups whose name starts with "Group" are selected.
Additionally, the members attribute values are filtered return
only member values with type
equal to groups
(as in sub-groups)
returning only the first 5 values using the attributes paging
qualifying parameters.¶
The server responds with 2 matched resources. The first
resource only has one Group member value, while the second
resource has 7 member values and has been limited to the first
5 members per the
count
paging parameter
.¶
In Figure 3 the client may observe that the number
of matches available for the second Group (whose id
is 6c5bb468-14b2-4183-baf2-06d523e03bd3
)
is 7. In Figure 4,
the client may return the second page, by repeating the query
with startIndex
set to 6.¶
In the following example, paging of member values of a specific group is requested.¶
Multi-value paging support may be determined by querying the
/ServiceProviderConfig
endpoint and
looking up the Boolean attribute mvpaging
indicating support for multi-valued paging and filtering.¶
To be completed¶
To be completed.¶
No IANA considerations.¶
This draft is an updated submission based on the original ID draft-hunt-scim-mv-paging-00 contributed by Phil Hunt and Gregg Wilson.¶
[[This section to be removed prior to publication as an RFC]]¶
Draft 00 - PH - Initial draft¶