get date of creation for user and/or workspace

Hi all,

We found that some users of our Bridge24 app create an account with the Asana Oauth procedure, but they don’t have any Asana account!

We don’t know why and how they find us, but they create an account in Asana, from our app.

They use the “login with asasa” procedure, they don’t have an asana account.
During the oauth process, they can create an Asana account.
After, they are back to our app, and they never saw the Asana UI !!

We need to detect these users, tell them that we are not Asana, and redirect them back to the Asana UI.

We tried to find if there’s a “created_at” field in the user or workspace, but we did not find any field that can tell us that a user just created its account a few seconds ago.

Do you have any idea how we can find the “age” of a user, or workspace?

I also think that Asana should detect that case, and not bring them back to us, if they just created their account.
They can also block the account creation from the Oauth process.

Thank you

Hi @Frederic_Malenfant!

There’s a created_at property on the Workspace Membership object; maybe you can use that?

1 Like

Thank you @Phil_Seeman !

That is what I just found after my post, and I get back here to write the answer :slight_smile: , when I saw yours!

We’ll use that information to prevent that situation.

We’ll use this: GET /users/me/workspace_memberships?opt_fields=created_at

If the oldest created_at of all workspace_memberships is less than X time, we’ll bring them back to Asana.

1 Like

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