[jira] [Updated] (JAMES-4136) Improve group managements

"Benoit Tellier (Jira)" <[email protected]>
Newsgroups gmane.comp.jakarta.james.devel
Message-ID <[email protected]>
     [ https://issues.apache.org/jira/browse/JAMES-4136?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benoit Tellier updated JAMES-4136:
----------------------------------
    Description: 
h3. Why?

 -> Complicated to easily audit which groups a user is part of.
 -> Complicated to remove a user from all the groups he belong
 -> Complicated to remove all groups when migrating to an alternative

h3. What?

Add additional webadmin routes

{code:java}
curl -XGET /mappings/sources/[email protected]?type=group
{code}


Will list all groups this user belong to:

{code:java}
["[email protected]", "[email protected]", "[email protected]"]
{code}

{code:java}
curl -XDELETE /mappings/sources/[email protected]?type=group
{code}

Will remove the users from all the groups he belong to.

{code:java}
curl -XDELETE /address/groups
{code}

Will remove all groups.

  was:
h3. Why?

 -> Complicated to easily audit which groups a user is part of.
 -> Complicated to remove a user from all the groups he belong
 -> Complicated to remove all groups when migrating to an alternative

h3. What?

Add additional webadmin routes

{code:java}
curl -XGET /users/[email protected]/groups
{code}


Will list all groups this user belong to:

{code:java}
["[email protected]", "[email protected]", "[email protected]"]
{code}

{code:java}
curl -XDELETE /users/[email protected]/groups
{code}

Will remove the users from all the groups he belong to.

{code:java}
curl -XDELETE /address/groups
{code}

Will remove all groups.


> Improve group managements
> -------------------------
>
>                 Key: JAMES-4136
>                 URL: https://issues.apache.org/jira/browse/JAMES-4136
>             Project: James Server
>          Issue Type: Improvement
>          Components: RRT, webadmin
>            Reporter: Benoit Tellier
>            Priority: Major
>
> h3. Why?
>  -> Complicated to easily audit which groups a user is part of.
>  -> Complicated to remove a user from all the groups he belong
>  -> Complicated to remove all groups when migrating to an alternative
> h3. What?
> Add additional webadmin routes
> {code:java}
> curl -XGET /mappings/sources/[email protected]?type=group
> {code}
> Will list all groups this user belong to:
> {code:java}
> ["[email protected]", "[email protected]", "[email protected]"]
> {code}
> {code:java}
> curl -XDELETE /mappings/sources/[email protected]?type=group
> {code}
> Will remove the users from all the groups he belong to.
> {code:java}
> curl -XDELETE /address/groups
> {code}
> Will remove all groups.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.