useGroupUser

useGroupUser(
  groupId: string | number,
  userId: string | number,
  options?: GroupUserOptions,
  deps?: any[]): ISiteUserInfo | null | undefined;

Returns an user from specific group user collection.

Examples

const groupUser = useGroupUser(10, 27);

const groupUser = useGroupUser("My SharePoint Group", 27);

const groupUser = useGroupUser("My SharePoint Group", "user@example.onmicrosoft.com");

const groupUser = useGroupUser("My SharePoint Group", "i:0#.f|membership|user@example.onmicrosoft.com");

Parameters

NameTypeDescriptionTracked for changes
groupIdstring | numberGroup name or IdYes
userIdstring | numberUser email, login name or IdYes
options?WebAppsOptionsuseApps hook optionsPartially
deps?DependencyListHook dependency list.Yes