user

package
v2.42.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 26, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeRemoteUserFederatedID added in v2.40.0

func DecodeRemoteUserFederatedID(id *userpb.UserId) *userpb.UserId

DecodeRemoteUserFederatedID decodes opaque id into remote user's federated id by splitting the opaque id at the last @ to get the opaque id and the domain

func FormatOCMUser

func FormatOCMUser(u *userpb.UserId) string

FormatOCMUser formats a user id in the form of <opaque-id>@<idp> used by the OCM API in shareWith, owner and creator fields

func LocalUserFederatedID added in v2.40.0

func LocalUserFederatedID(id *userpb.UserId, domain string) *userpb.UserId

LocalUserFederatedID creates a federated id for local users by 1. stripping the protocol from the domain and 2. if the domain is different from the idp, add the idp to the opaque id

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL