Skip to content

[FEATURE REQUEST] Add a member to a space: Search user and show the list of matches #4613

@jesmrec

Description

@jesmrec

AC:

  • A + option to add new members, only available for users with "Space manager" role. The associated permission is libre.graph/driveItem/permissions/create
  • The "+" option will open a new view/dialog to perform the invitation.

iOS view:

Image Image

Shows the basic info of the space (icon, name, quota...), an info message (Enter the user or group...)
and a textbox in which the user will type the username.

As the user types the name the results are shown, refreshing after every character if the string is at least 3 characters long.

A Cancel button also available across the process.


Base request:

To search users/groups:

https://...:9200/graph/v1.0/users?$search="John"&$orderby=displayName
https://...:9200/graph/v1.0/groups?$search="John"&$orderby=displayName

it returns a list of results like:

{
    "value": [
        {
            "accountEnabled": true,
            "displayName": "John Smith",
            "id": "cbe0ff51-e1ef-4c7b-b74e-827bc3bcd7fa",
            "mail": "john@smith.com",
            "onPremisesSamAccountName": "jsmith",
            "surname": "jsmith",
            "userType": "Member"
        },
        ...
}

TASKS

  • Research (if needed)
  • Create branch feature/search_and_show_new_space_members
  • Development tasks
    • Add + option to add members (only for space managers)
    • Create the new view/screen to perform the invitation
    • Implement logic to search users
    • Implement logic to search groups
    • ...
    • Implement unit tests (if needed)
  • Code review and apply changes requested
  • Design test plan
  • QA
  • Merge branch feature/search_and_show_new_space_members

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions