# Workgroup Details

**URL:** <https://developer.sailpoint.com/discuss/t/workgroup-details/26574>\
**Category:** IIQ Discussion and Questions\
**Tags:** workflows, identityiq\
**Created:** [January 24, 2024, 12:45pm UTC](https://developer.sailpoint.com/discuss/t/workgroup-details/26574 "2024-01-24T12:45:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![manikanda\_vanguard](https://avatars.discourse-cdn.com/v4/letter/m/a88e57/32.png) [@manikanda\_vanguard](https://developer.sailpoint.com/discuss/u/manikanda_vanguard)\
**Post date:** [January 24, 2024, 12:45pm UTC](https://developer.sailpoint.com/discuss/t/workgroup-details/26574/1 "2024-01-24T12:45:48Z")

</div>

### Which IIQ version are you inquiring about?

Version 8.3

### Share all details related to your problem, including any error messages you may have received.

Could you please provide a complete rule code which takes workgroup names passing through the filter condition as the input and return Workgroup Details like Name, Owner, Description, Group Email, Capabilities, Members, Scope, Notification Setting, Authorized Scopes as the output

---

<div class="post-metadata">

**Author:** ![maximilian\_langel](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/maximilian_langel/32/10564_2.png) [@maximilian\_langel](https://developer.sailpoint.com/discuss/u/maximilian_langel)\
**Post date:** [January 24, 2024, 2:31pm UTC](https://developer.sailpoint.com/discuss/t/workgroup-details/26574/2 "2024-01-24T14:31:25Z")

</div>

We need the feeling that you try to write this rule yourself then we can help you. Read the dokcumentation, watch the Videos and try to code it yourself step by step. At which part of IIQ you want to use this Rule?

---

<div class="post-metadata">

**Author:** ![kjakubiak](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/kjakubiak/32/7052_2.png) [@kjakubiak](https://developer.sailpoint.com/discuss/u/kjakubiak)\
**Post date:** [January 24, 2024, 3:11pm UTC](https://developer.sailpoint.com/discuss/t/workgroup-details/26574/3 "2024-01-24T15:11:36Z")

</div>

What I can suggest to you is the following

```auto
String groupName = "yourWorkgroupName";
Identity workgroup = context.getObjectByName(Identity.class,groupName);

```

this part will give you a single workgroup object which you can then explore following  
[http://javadoc.jakubiak.pro](http://javadoc.jakubiak.pro)

for Identity object.

If you want to query for workgroups using filters you can do following

```auto
QueryOptions qo = new QueryOptions();
Filter f1 = Filter.eq("name",workgroupName1);
Filter f2 = Filter.eq("name",workgroupName2);

qo.or(f1,f2);

List workgroups = context.getObjects(Identity.class,qo);

```

and you can iterate over this list and get all the data from each object yourself.

Few important remarks

1. Using `context.getObjects()` you read all objects to memory which for big sets of objects might be suboptimal
2. For big lists - better to use `context.search()` - as it only returns iterator not the full object.

More you can find in JavaDoc linked above for SailPointContext class. Hope I helped a bit 🙂 in case you have any doubts please let me know.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [March 24, 2024, 3:12pm UTC](https://developer.sailpoint.com/discuss/t/workgroup-details/26574/4 "2024-03-24T15:12:18Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
