User membership in the profile - missing groups

Unfortunatelly there is no standard way for an extension to inject itself in the user profile so to get the groups tab there is some more work to do.

Edit XWiki.XWikiUserSheet document and add the following line:

#set($discard = $categories.add({'id':'groups', 'sheet':'XWiki.XWikiUserMembershipSheet', 'glyphicon': 'modal-window'}))

Since 10.8RC1 this feature is part of XWiki Standard.

If it is included qhy we need to add this line? And what exactly mean: Edit XWiki.XWikiUserSheet ? How to get to this page?

WIthout this line I have empty groups :frowning:

It’s now possible in XWiki 12.2, see https://www.xwiki.org/xwiki/bin/view/ReleaseNotes/Data/XWiki/12.2/#HExtensibleUserProfileMenu!

I’ve updated https://extensions.xwiki.org/xwiki/bin/view/Extension/User%20membership%20in%20the%20profile/#HGetgroupsintheprofile

Thanks

Where did you find this?

ok I know, this is an extension that was developed before the feature was included in XWiki Standard. As simple as that :slight_smile:

OK, I have xwiki 12.2. So I still need to add this line manually?

Edit XWiki.XWikiUserSheet document and add the following line:
#set($discard = $categories.add({'id':'groups', 'sheet':'XWiki.XWikiUserMembershipSheet', 'glyphicon': 'modal-window'}))`

If yes, so what it means XWiki.XWikiUserSheet ? How to find it? Can you give me sample URL? :slight_smile:

Because with fresh xwiki flavor 12.2 I have empty groups info:
image

As the documentation of this extension suggest you don’t need to do anything since 10.8RC1 because you already have this info in the profile.

OK, so why group list is empty? Its a bug?

Works fine for me (tested in 11.10.3). Are you sure your user is in a group (it’s not the case for the first created user) ?

Yes, I am in 2 groups. One standard admin:

image

and one custom

image

But when I click on my user, and next select Groups
/xwiki/bin/view/XWiki/papi?category=groups
list is empty

Maybe you have some setup issue which break the groups list loading. Would be great if you could check if you have some error in the browser console (you should find that in your browser dev tools).

Only those both are red:

this is fresh installation. I use HTTPS.

  1. Request URL:

https://wiki.my-company.com/xwiki/asyncrenderer/notifications/display/5ALERT%2F16xwiki%3AXWiki.papi%2F10%2Fnull%2F-798586342/user/xwiki%3AXWiki.papi/wiki/xwiki/68?clientId=68&timeout=500&wiki=xwiki

None of those are related to groups but getting errors here means there is definitely something wrong.

OK, please give me info which file contain data about user group. I will check it. Guess it should be some JSON, yes?

image

I don’t see it in that list, it should be something like

<url to your profile>?outputSyntax=plain&transprefix=user.profile.groups.table.&classname=&collist=group&queryFilters=currentlanguage%2Chidden&&sheet=XWiki.XWikiUserMembershipSheet&offset=1&limit=15&reqNo=1&sort=group&dir=asc

I have it with status 200
https://wiki.my-company.com/xwiki/bin/get/XWiki/PaKa?outputSyntax=plain&transprefix=user.profile.groups.table.&classname=&collist=group&queryFilters=currentlanguage%2Chidden&&sheet=XWiki.XWikiUserMembershipSheet&offset=1&limit=15&reqNo=1&sort=group&dir=asc

but Response and Previes are empty

image

BTW I use fresh 12.2 with flavor 12.2 and OIDC auth.
Nothing more.

I have downloaded Fresh Xwiki from

Install Flavor 12.2 and have the same :frowning:
Java JDK 11

IMPLEMENTOR="Oracle Corporation"
IMPLEMENTOR_VERSION="18.9"
JAVA_VERSION="11"
JAVA_VERSION_DATE="2018-09-25"
MODULES="java.base java.compiler java.datatransfer java.xml java.prefs java.desktop java.instrument java.logging java.management java.security.sasl java.naming java.rmi java.management.rmi java.net.http java.scripting java.security.jgss java.transaction.xa java.sql java.sql.rowset java.xml.crypto java.se java.smartcardio jdk.accessibility jdk.internal.vm.ci jdk.management jdk.unsupported jdk.internal.vm.compiler jdk.aot jdk.internal.jvmstat jdk.attach jdk.charsets jdk.compiler jdk.crypto.ec jdk.crypto.cryptoki jdk.crypto.mscapi jdk.dynalink jdk.internal.ed jdk.editpad jdk.hotspot.agent jdk.httpserver jdk.internal.le jdk.internal.opt jdk.internal.vm.compiler.management jdk.jartool jdk.javadoc jdk.jcmd jdk.management.agent jdk.jconsole jdk.jdeps jdk.jdwp.agent jdk.jdi jdk.jfr jdk.jlink jdk.jshell jdk.jsobject jdk.jstatd jdk.localedata jdk.management.jfr jdk.naming.dns jdk.naming.rmi jdk.net jdk.pack jdk.rmic jdk.scripting.nashorn jdk.scripting.nashorn.shell jdk.sctp jdk.security.auth jdk.security.jgss jdk.unsupported.desktop jdk.xml.dom jdk.zipfs"
OS_ARCH="x86_64"
OS_NAME="Windows"
SOURCE=".:76072a077ee1"

But it works in 11.10.4 :slight_smile: :slight_smile: :slight_smile: :slight_smile: :slight_smile: :slight_smile: :slight_smile: :slight_smile: :slight_smile: :slight_smile: :slight_smile: :slight_smile: :slight_smile: :slight_smile: :slight_smile: :slight_smile: :slight_smile: :slight_smile: :slight_smile: :slight_smile: :slight_smile: :slight_smile: :slight_smile: :slight_smile:

image

so there is a BUG in 12.02 :slight_smile: