Skip to content

[Internal] SentinelOne v2 3.2.37#4

Merged
munna-metron merged 13 commits intoSentinelOne-V2-3.2.37from
SentinelOne-V2-3.2.37-internal
Feb 20, 2025
Merged

[Internal] SentinelOne v2 3.2.37#4
munna-metron merged 13 commits intoSentinelOne-V2-3.2.37from
SentinelOne-V2-3.2.37-internal

Conversation

@munna-metron
Copy link
Owner

Contributing to Cortex XSOAR Content

Make sure to register your contribution by filling the contribution registration form

The Pull Request will be reviewed only after the contribution registration form is filled.

Status

  • In Progress
  • Ready
  • In Hold - (Reason for hold)

Related Issues

fixes: link to the issue

Description

A few sentences describing the overall goals of the pull request's commits.

Must have

  • Tests
  • Documentation

@saurabh-metron saurabh-metron changed the title [Internal] Sentinel one v2 3.2.37 [Internal] SentinelOne v2 3.2.37 Feb 20, 2025
@munna-metron
Copy link
Owner Author

munna-metron commented Feb 20, 2025

After adding the SectionOrder, There is no changes in the UI side, the config is looks same. Added this SectionOrder key as the pre-commit fix.
image
image
image
image
image

service_users, pagination = client.get_service_users_request(query_params)

if pagination and pagination.get("nextCursor") is not None:
demisto.results("Use the below cursor value to get the next page service users \n {}".format(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are we breaking here?
what happens to the page fetched already?
can we not get all the data in 1 GO? using pagination internally? instead of spitting out the page token

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in PROD - there won't be 1000s of apps or service users anyway ;)

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree in PROD there won't be 1000s of apps or service users. that's the reason command is making the API call once. and return the context data. In case any user has the more than 1000, in that case we are showing the cursor value in the war room, so that user can fetch the remaining 1000, and so on.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Saurabh what do you think, please suggest here. thanks

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we not make further API calls for further pages and return everything - instead of sending the page token
users may not know how to use it?

XSOAR team might say the same ;)

we are returning 2 things from a command - list of users/applications + page token when its more than 1000
ideally command should result only the asked details

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay. sure

while pagination and pagination.get("nextCursor"):
demisto.debug("Got the next page for installed applications \n {}".format(pagination['nextCursor']))
query_params['cursor'] = pagination['nextCursor']
if query_params.get('limit'):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just add a comment when we need to remove the limit

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets remove limit and cursor because we will get them everything

| SentinelOne.InstalledApps.Account | string | The account name. |
| SentinelOne.InstalledApps.AccountId | string | The account ID. |
| SentinelOne.InstalledApps.ApplicationCatalogId | string | The application Catalog ID. |
| SentinelOne.InstalledApps.applicationCatalogName | string | The application Catalog name. |
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
| SentinelOne.InstalledApps.applicationCatalogName | string | The application Catalog name. |
| SentinelOne.InstalledApps.ApplicationCatalogName | string | The application Catalog name. |

@munna-metron munna-metron merged commit 788f88c into SentinelOne-V2-3.2.37 Feb 20, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants