Package com.xwiki.azureoauth.user
Interface EntraIDUsersManager
-
@Role @Unstable public interface EntraIDUsersManagerExpose the EntraID users which are already present on the XWiki instance, or the list which is provided by the EntraID server.- Since:
- 2.1
- Version:
- $Id$
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<ExternalUser>getEntraServerUsers()Get aListof users present on the EntraID server.List<com.xpn.xwiki.doc.XWikiDocument>getXWikiUsers()Get aListof internal users that are created from EntraId.Map<String,com.xpn.xwiki.doc.XWikiDocument>getXWikiUsersMap()Get aMapof internal users that are created from EntraId, with the user id (subject) as the key.
-
-
-
Method Detail
-
getXWikiUsersMap
Map<String,com.xpn.xwiki.doc.XWikiDocument> getXWikiUsersMap() throws Exception
Get aMapof internal users that are created from EntraId, with the user id (subject) as the key.- Returns:
- the internal users that are created from EntraId
- Throws:
Exception- if there are any errors while getting the users.
-
getXWikiUsers
List<com.xpn.xwiki.doc.XWikiDocument> getXWikiUsers() throws com.xpn.xwiki.XWikiException, org.xwiki.query.QueryException
Get aListof internal users that are created from EntraId.- Returns:
- a
Listof the user documents - Throws:
com.xpn.xwiki.XWikiException- if there is any error while retrieving the documentsorg.xwiki.query.QueryException- if the query execution fails
-
getEntraServerUsers
List<ExternalUser> getEntraServerUsers() throws Exception
Get aListof users present on the EntraID server.- Returns:
- the external users info stored in
ExternalUser - Throws:
Exception- if there are any errors while getting the users.
-
-